commit | 146ff1bb11c88778d466bd7a49b544f2b5806ee0 | [log] [tgz] |
---|---|---|
author | marius.mlynski <marius.mlynski@gmail.com> | Mon Apr 25 07:46:39 2016 |
committer | Commit bot <commit-bot@chromium.org> | Mon Apr 25 07:48:15 2016 |
tree | 60919233ab239f16f2c8881ac29734fe6c3320f3 | |
parent | 912389ce4727ec95ed2337474c8f7c30585faf52 [diff] |
Don'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 Review URL: https://codereview.chromium.org/1910403003 Cr-Commit-Position: refs/heads/master@{#389425}