mirror of
https://github.com/servo/servo.git
synced 2025-08-30 09:38:19 +01:00
Don't run scripts while DOM tree is undergoing mutations (#34505)
* script: Implement node insertion post-connection hook. Ensure script elements only run scripts when the DOM has stabilized. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Make iframe element use post-connection steps when handling initial document insertion. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Use a delayed task when running post-connection steps. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Add explanatory comment. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Tidy. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
20d67bdc44
commit
981616f918
10 changed files with 117 additions and 51 deletions
|
@ -1,3 +0,0 @@
|
|||
[Node-appendChild-three-scripts-from-fragment.tentative.html]
|
||||
[Node.appendChild: inserting three scripts from a document fragment]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[Node-appendChild-three-scripts.tentative.html]
|
||||
[Node.appendChild: inserting three scripts from a div]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue