Contact emailssisidov...@chromium.org Specificationhttps://urlpattern.spec.whatwg.org
Summary The URL Pattern API allows developers to specify pattern strings. Those are transformed to regular expressions internally. When the API was first implemented, these regular expressions were compiled with the u flag. We're going to update it to the v flag, enabling Unicode sets <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicodeSets> . Blink componentBlink>URLPattern <https://bugs.chromium.org/p/chromium/issues/list?q=component:Blink%3EURLPattern> TAG reviewNone TAG review statusNot applicable Risks Interoperability and Compatibility https://github.com/tc39/proposal-regexp-v-flag#how-is-the-v-flag-different-from-the-u-flag This doc has a list the potentially breaking changes between u and v. Some patterns that previously would compile, now throw an error with the v flag, specifically those with a character class including either an unescaped special character or a double punctuator. I believe it does not significantly affect the patterns in use today. From UMA metric on Beta, incompatible patterns are less than 0.001% of the total compilation. Also, the use counter of the API itself has only 0.11%. The expected impact is extremely limited. *Gecko*: No signal *WebKit*: No signal *Web developers*: No signals *Other signals*: 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)?No Is this feature fully tested by web-platform-tests <https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md> ?Yes https://wpt.fyi/results/urlpattern/urlpattern.any.html Tests for set notations were added in https://github.com/web-platform-tests/wpt/pull/43014 Flag name on chrome://flags Finch feature nameURLPatternRegexpUnicodeSetsMode Requires code in //chrome?False Tracking bughttps://bugs.chromium.org/p/chromium/issues/detail?id=1482263 Estimated milestones Shipping on desktop 121 Shipping on Android 121 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/5122651463090176 This intent message was generated by Chrome Platform Status <https://chromestatus.com/>. -- 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+unsubscr...@chromium.org. To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAGMyg-ZAnsDEw1haRd1HOuYcieHOYKZ73oYAQ3SfWv9umsd-TA%40mail.gmail.com.