Closed Bug 1756574 Opened 3 years ago Closed 3 years ago

Variants with empty query string or fragment confuse wptrunner

Categories

(Testing :: web-platform-tests, defect)

Default
defect

Tracking

(firefox99 fixed)

RESOLVED FIXED
99 Branch
Tracking Status
firefox99 --- fixed

People

(Reporter: jgraham, Assigned: jgraham)

Details

Attachments

(2 files)

If a test has <meta name=variant content=?> we construct the test id as /path/to/test.html?. But if that's treated as a URL and then normalised we end up with /path/to/test.html. This mismatch isn't handled well by wptrunner or various other components (e.g. the metadata update).

The simplest thing to do is to forbid empty query or fragment parts in a test id and fail to generate the manifest in that case.

Assignee: nobody → james
Status: NEW → ASSIGNED

These have a different normalised representation, which confuses various parts of
the infrastructure that assume you can manipulate test ids like URLs

Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/32995 for changes under testing/web-platform/tests
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d182bd668dcc Remove empty query variant from app-history tests, r=jdescottes https://hg.mozilla.org/integration/autoland/rev/4ffc3dd1d29d Disallow variants with empty query or fragments, r=jdescottes,Ms2ger
Upstream PR was closed without merging
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a9d568c9b12a Remove empty query variant from app-history tests, r=jdescottes https://hg.mozilla.org/integration/autoland/rev/0e15e6e4dd42 Disallow variants with empty query or fragments, r=jdescottes,Ms2ger
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: