[wpt-sync] Sync PR 39007 - [wptrunner] Fix test ID reported in `testharnessreport-content-shell.js`
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox113 fixed)
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 usesHTMLAnchorElement
to parselocation.href
to derive the test ID, which is plumbed throughcontent_shell
's internaltestRunner
API and into the wptrunner driver.For an unknown reason, the URL parts of the
HTMLAnchorElement
can beundefined
, 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 othertestharnessreport-*.js
. Indeed,servodriver
just useswindow.location.*
1 directly on completion, which also seems to fix the linked crbug.
Assignee | ||
Comment 1•2 years ago
|
||
Assignee | ||
Comment 2•2 years ago
|
||
Assignee | ||
Comment 4•2 years ago
|
||
Comment 5•2 years ago
|
||
bugherder |
Description
•