Closed Bug 1822486 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 39007 - [wptrunner] Fix test ID reported in `testharnessreport-content-shell.js`

Categories

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

task

Tracking

(firefox113 fixed)

RESOLVED FIXED
113 Branch
Tracking Status
firefox113 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Jonathan Lee <jonathanjlee@google.com> wrote:

[wptrunner] Fix test ID reported in testharnessreport-content-shell.js

Currently, the content_shell reporter uses HTMLAnchorElement to parse location.href to derive the test ID, which is plumbed through content_shell's internal testRunner API and into the wptrunner driver.

For an unknown reason, the URL parts of the HTMLAnchorElement can be undefined, leading to crbug.com/1418753. It's not clear if there's a good reason why we use <a> for parsing the URL eagerly, other than copying other testharnessreport-*.js. Indeed, servodriver just uses window.location.* 1 directly on completion, which also seems to fix the linked crbug.

Test result changes from PR not available.
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c4906009afcd [wpt PR 39007] - [wptrunner] Fix test ID reported in `testharnessreport-content-shell.js`, a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
You need to log in before you can comment on or make changes to this bug.