Implement URL.canParse()
Categories
(Core :: DOM: Networking, enhancement, P2)
Tracking
()
People
(Reporter: annevk, Assigned: canadahonk)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-complete, parity-safari, Whiteboard: [necko-triaged])
Attachments
(1 file)
Updated•1 year ago
|
Comment 1•1 year ago
|
||
Safari landed it to preview 168, so the keyword. https://webkit.org/blog/14106/release-notes-for-safari-technology-preview-168/
Assignee | ||
Comment 2•11 months ago
|
||
Implemented URL.canParse() static function for checking if a URL can be
parsed (instead of having to try wrap the constructor).
Avoids using an ErrorResult/Throws as it is not specified, and for
performance (see spec issue from linked PR).
All WPT tests for it now pass.
Spec PR: https://github.com/whatwg/url/pull/763
WPT tests: https://wpt.fyi/results/url/url-statics-canparse.any.html
Updated•11 months ago
|
Assignee | ||
Comment 3•11 months ago
|
||
Intent to prototype and ship: https://groups.google.com/a/mozilla.org/g/dev-platform/c/BWLpi4dqZOE
Pushed by oj@oojmed.com: https://hg.mozilla.org/integration/autoland/rev/69cd9d943489 Implement URL.canParse() r=emilio
Comment 5•11 months ago
|
||
Backed out for causing wpt failures in /url/idlharness.any.worker.html
Backout link: https://hg.mozilla.org/integration/autoland/rev/e8102aa8a372dee850fbac0e1bcf0157e60ccdec
Pushed by oj@oojmed.com: https://hg.mozilla.org/integration/autoland/rev/1b2f34c70570 Implement URL.canParse() r=emilio
Comment 8•11 months ago
|
||
bugherder |
Assignee | ||
Comment 9•11 months ago
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]: New function exposed to all sites (in window)
[Affects Firefox for Android]: Yes
[Suggested wording]: Added the new URL.canParse() function to allow easy and fast checking if URLs are valid and parseable.
[Links (documentation, blog post, etc)]: No docs yet as quite new.
Comment 10•11 months ago
|
||
Thanks, added a to the Fx115 Nightly release notes. Keeping the relnote? flag open to keep it on the radar for inclusion in our final release notes.
Comment 12•11 months ago
|
||
FF115 MDN docs can be tracked in https://github.com/mdn/content/issues/27170.
The work is all done, but in review.
Updated•10 months ago
|
Description
•