Open
Bug 1849107
Opened 1 year ago
Updated 10 months ago
Ensure scripts moving between documents between script running steps are correctly handled
Categories
(Core :: DOM: Core & HTML, task)
Core
DOM: Core & HTML
Tracking
()
NEW
People
(Reporter: hsivonen, Unassigned)
References
Details
Back in 2010 the HTML spec required scripts to run even if they were moved between documents between various steps of script parsing, preparation, and execution. These days, all three docs must be the same (or the document associated with the parser must be null for scripts that aren't parser-inserted).
Currently, we perform the check that parsing and preparation match but the later check is more ad hoc. We should re-do this code properly and re-assess the use of a weak reference to the parser.
You need to log in
before you can comment on or make changes to this bug.
Description
•