Allows easy inspection of whether a URLPattern uses one or more ECMAScript regular expression groups, and therefore may not be suitable for use in cases where an ECMAScript engine is not available (such as some upcoming planned APIs). Strictly speaking this reflects back something developers could know anyway from inspecting the pattern, but having easy access to the UA's implementation of this check makes that more straightforward.
Interoperability risk is low. The feature is simple, has a small API surface area, and is easy to implement. It could be polyfilled if other browser vendors implemented URLPattern but not this feature, though that outcome does not seem likely.
No significant concerns anticipated
No; in fact this property is added specifically to make activation of features which can only accept patterns with no regexp groups easier.
No security risks have been identified.
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
Standard developer tools (e.g., the JavaScript console) are likely to be sufficient. If URL patterns become extremely popular one could imagine tools particular to them, but those could be developed independently of this ship decision.
Shipping on desktop | 122 |
Shipping on Android | 122 |
Shipping on WebView | 122 |
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--
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/CACuR13eBnT2Ee55fE%3DcNw9v%3DoJ9SZ_H4%2B6RKZnUwfsW4W3e%3DGw%40mail.gmail.com.
LGTM2
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFUtAY9LVvLvV6fe7H1kyJHKW1o0tN-CsYYBvez%2B9_JzRAmfjA%40mail.gmail.com.
Contact emailsjbr...@chromium.org
ExplainerNone
Specificationhttps://urlpattern.spec.whatwg.org/#dom-urlpattern-hasregexpgroups
SummaryAllows easy inspection of whether a URLPattern uses one or more ECMAScript regular expression groups, and therefore may not be suitable for use in cases where an ECMAScript engine is not available (such as some upcoming planned APIs). Strictly speaking this reflects back something developers could know anyway from inspecting the pattern, but having easy access to the UA's implementation of this check makes that more straightforward.
Availability expectationDependent on implementation of URL Pattern API in non-Chromium browsers.
Estimated milestonesShipping on desktop122Shipping on Android122Shipping on WebView122
If approvals arrive in time for 121 branch, I'll enable this in 121, but I'm currently assuming not.
Anticipated spec changesOpen 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 Statushttps://chromestatus.com/feature/4761338127843328
On Thursday, November 30, 2023 at 3:34:53 AM UTC+1 Jeremy Roman wrote:Contact emailsjbr...@chromium.org
ExplainerNone
Specificationhttps://urlpattern.spec.whatwg.org/#dom-urlpattern-hasregexpgroups
SummaryAllows easy inspection of whether a URLPattern uses one or more ECMAScript regular expression groups, and therefore may not be suitable for use in cases where an ECMAScript engine is not available (such as some upcoming planned APIs). Strictly speaking this reflects back something developers could know anyway from inspecting the pattern, but having easy access to the UA's implementation of this check makes that more straightforward.
Would the answer here be different between different implementations?