Skip to content

Commit

Permalink
Bug 1860937 [wpt PR 42738] - URLPattern: Apply syntax changes from wh…
Browse files Browse the repository at this point in the history
…atwg/urlpattern#179., a=testonly

Automatic update from web-platform-tests
URLPattern: Apply syntax changes from whatwg/urlpattern#179.

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}

--

wpt-commits: d3e55612911b00cb53271476de610e75a8603ae7
wpt-pr: 42738
  • Loading branch information
jeremyroman authored and moz-wptsync-bot committed Nov 22, 2023
1 parent 5911254 commit 95882ca
Show file tree
Hide file tree
Showing 2 changed files with 144 additions and 135 deletions.
Loading

0 comments on commit 95882ca

Please sign in to comment.