Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: LayoutTests/fast/parser/scriptexec-during-parserRemoveChild.html

Issue 1277793002: parserRemoveChild: Avoid unintended DOM modifications after user script run (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add tests Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/parser/scriptexec-during-parserRemoveChild-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <body>
4 <b><p><iframe src="javascript:onunload = function() {
5 if(!top.container) {
6 top.container = document.createElement('div');
7 top.container.appendChild(frameElement.parentNode);
8 }
9 }"></iframe></b></p><!-- This order is intentional to force reparenting of ifram e -->
10 <script>
11 description("Ensure that iframe onunload event handler triggered during reparent ing that modifies the reparented DOM doesn't corrupt DOM.")
12 var iframe = document.querySelector("iframe");
13 shouldBe("iframe", "iframe.parentNode.firstChild");
14 var parentNode = iframe.parentNode;
15 shouldBe("parentNode", "parentNode.parentNode.firstChild");
16 </script>
17 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/parser/scriptexec-during-parserRemoveChild-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698