Closed Bug 1603872 Opened 5 years ago Closed 4 years ago

[wpt-sync] Sync PR 20775 - Test `document.currentScript` when script is moved during evaluation

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
88 Branch
Tracking Status
firefox88 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Hiroshige Hayashizaki <hiroshige@chromium.org> wrote:

Test document.currentScript when script is moved during evaluation

In the spec before https://github.com/whatwg/html/pull/5154,

script element's node document is re-evaluated after script evaluation,
and thus if a script is moved to another Document during its own evaluation,
currentScript of the new document could be updated.

After #5154, currentScript is always set/reset on the same Document,
which is expected, and tested so here.

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
Status: RESOLVED → REOPENED
Resolution: INVALID → ---

CI Results

Ran 15 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 1 subtests

Status Summary

Firefox

OK : 1
PASS: 1

Chrome

OK : 1
PASS: 1

Safari

OK : 1
PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6df9ed707830 [wpt PR 20775] - Test `document.currentScript` when script is moved during evaluation, a=testonly
Status: REOPENED → RESOLVED
Closed: 4 years ago4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
You need to log in before you can comment on or make changes to this bug.