Intent to Prototype and Ship: URL.canParse

113 views
Skip to first unread message

Jeremy Roman

unread,
Oct 13, 2023, 6:08:44 PM10/13/23
to blink-dev

Contact emails

jbr...@chromium.org

Explainer

None

Specification

https://url.spec.whatwg.org/#dom-url-canparse

Summary

A static operation to determine whether a URL string is valid. More concise than catching an exception thrown from the URL constructor.



Blink component

Blink>DOM

TAG review

None

TAG review status

Not applicable

Risks



Interoperability and Compatibility

This improves interoperability -- this feature is already supported in stable releases of Firefox and Safari. It is not expected to have any compatibility risk.



Gecko: Shipped/Shipping

WebKit: Shipped/Shipping

Web developers: Positive (https://github.com/whatwg/url/issues/713)

Other signals:

Ergonomics

Improves ergonomics of checking URL validity.



Activation

None anticipated.



Security

None -- this is an ergonomic change.



WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

None



Debuggability

None.



Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

Yes

Is this feature fully tested by web-platform-tests?

Yes

Covered under url/ directory, and functionality is close to trivial.



Flag name on chrome://flags

None

Finch feature name

None

Non-finch justification

None

Requires code in //chrome?

False

Estimated milestones

Shipping on desktop120
Shipping on Android120
Shipping on WebView120


Anticipated spec changes

Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).

None

Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5123302532317184

This intent message was generated by Chrome Platform Status.

Mike Taylor

unread,
Oct 16, 2023, 10:24:48 AM10/16/23
to Jeremy Roman, blink-dev

LGTM1

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACuR13cbGAQn0-F_ygyqh1n0SP4p4rxdWO-0VYcb__fGYwgXqA%40mail.gmail.com.

Alex Russell

unread,
Oct 16, 2023, 1:34:19 PM10/16/23
to Mike Taylor, Jeremy Roman, blink-dev

Philip Jägenstedt

unread,
Oct 17, 2023, 6:03:06 AM10/17/23
to Alex Russell, Mike Taylor, Jeremy Roman, blink-dev
Reply all
Reply to author
Forward
0 new messages