Do not fire error events for scripts that move between documents during preparation and execution phase
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox77 | --- | affected |
People
(Reporter: d, Unassigned)
Details
In some cases (but not all), Firefox fires error events for scripts that move between documents during the preparation and execution phase. In all cases, Firefox prevents execution of such scripts.
Preventing execution of such scripts was not specced until recently. We did so in https://github.com/whatwg/html/pull/2673, with tests added in https://github.com/web-platform-tests/wpt/pull/19632. While doing so we decided to have this case not fire any error events, since Chromium fired no such events, and Firefox and Safari only fired them in some cases (and not in the same cases).
So, this bug is to align with the newly-specified behavior, which for Firefox just means not firing error events.
https://wpt.fyi/results/html/semantics/scripting-1/the-script-element/moving-between-documents?label=master&label=experimental&product=chrome&product=firefox&product=safari&aligned should show the cross-browser test results soon.
Updated•4 months ago
|
Updated•3 months ago
|
Description
•