Closed Bug 1752023 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 32481 - URLPattern: Fix erroneous prefix check in GeneratePatternString().

Categories

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

task

Tracking

(firefox98 fixed)

RESOLVED FIXED
98 Branch
Tracking Status
firefox98 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Ben Kelly <wanderview@chromium.org> wrote:

URLPattern: Fix erroneous prefix check in GeneratePatternString().

This fixes another issue related to:

https://github.com/WICG/urlpattern/issues/145

In this case we were incorrectly looking at the prefix value when trying
to determine if we should protect against characters following a :foo
named group. We don't need the prefix check because we already have the
needs_grouping check. With this check in place we would incorrectly
allow following characters when there is an implicit prefix, like / in
a pathname.

Bug: 1289115
Change-Id: Id8a88b55a31c3a0e72310574fe4d7a6fc7781d68
Reviewed-on: https://chromium-review.googlesource.com/3405148
WPT-Export-Revision: 21122794d4e03a8cef5a917c5bfb0a1b5a8cfb65

PR 32481 applied with additional changes from upstream: 4928cc8d516868267da4be9a5b9a5f7856dd0b65, fd132aec57c531fdbb71cc7cd18aed97a8e3492a, b717651264109d1ac96e922431b7b846ba8d599f
The PR was not expected to affect any tests, but the try push wasn't a success. Check the try results for infrastructure issues
Test result changes from PR not available.
Test result changes from PR not available.
Test result changes from PR not available.
Test result changes from PR not available.
Test result changes from PR not available.
Test result changes from PR not available.
Test result changes from PR not available.
Test result changes from PR not available.
Test result changes from PR not available.
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 98 Branch
You need to log in before you can comment on or make changes to this bug.