Closed Bug 1725197 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 29993 - URLPattern: Use default options for cannot-be-a-base pathnames.

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox93 fixed)

RESOLVED FIXED
93 Branch
Tracking Status
firefox93 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 29993 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/29993
Details from upstream follow.

b'Ben Kelly <wanderview@chromium.org>' wrote:

URLPattern: Use default options for cannot-be-a-base pathnames.

Standard URLs have well structured pathnames with / characters. We
therefore use liburlpattern options that make / characters behave as
prefixes and separators when operating on pathnames.

Non-standard (or "cannot be a base URL") URLs do not treat / specially
in pathnames, though. Therefore we should use default liburlpatterion
options in this case to avoid incorrectly treating a / character as
a prefix, etc.

This CL includes a test that fails without this change.

Bug: 1234865
Change-Id: I7a4e3216fb63b8c34c27662bb0bcc236669f947c

Reviewed-on: https://chromium-review.googlesource.com/3088258
WPT-Export-Revision: b87fdc19f482e79a70bb820f6947df6775b2b2f7

Test result changes from PR not available.
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f4f6e1c8e4ce
[wpt PR 29993] - URLPattern: Use default options for cannot-be-a-base pathnames., a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
You need to log in before you can comment on or make changes to this bug.