DescriptionDon't allow scripts to run when a node is being adopted.
Running a script in the middle of rescoping nodes can break a lot of invariants and leave DOM in an inconsistent state.
This patch adds a ScriptForbiddenScope in TreeScope::adoptIfNeeded to ensure it never happens.
BUG=605766
Committed: https://crrev.com/146ff1bb11c88778d466bd7a49b544f2b5806ee0
Cr-Commit-Position: refs/heads/master@{#389425}
Patch Set 1 #
Total comments: 1
Messages
Total messages: 11 (4 generated)
|