Skip to content

Commit

Permalink
URLPattern: Apply syntax changes from whatwg/urlpattern#179.
Browse files Browse the repository at this point in the history
The following changes apply to patterns which are constructed
using a base URL, the string syntax, or both -- but not any
pattern which explicitly specifies components separately without
a base URL.

* Components are not inherited from a base URL if an "earlier"
  component is explicitly specified.
* In the string format, unspecified "later" components are
  implicitly wildcarded, rather than required to be empty
  (with the exception of the port, which is always taken to
  be specified when the hostname is).
* Username and password are never implicitly specified or
  inherited.

This means that a pattern like "https://example.com/*" also
matches with any username, password, search, and hash.
Previously this would be written
"https://*:*@example.com/*\\?*#*".

Bug: 1468446
Change-Id: Ie0d7a80e36e89e05a0c634f7565c3365909edb2d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4975595
Reviewed-by: Dominic Farolino <dom@chromium.org>
Commit-Queue: Jeremy Roman <jbroman@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1221197}
  • Loading branch information
jeremyroman authored and chromium-wpt-export-bot committed Nov 7, 2023
1 parent 3712b4c commit d3e5561
Show file tree
Hide file tree
Showing 2 changed files with 144 additions and 135 deletions.
Loading

0 comments on commit d3e5561

Please sign in to comment.