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

Side by Side Diff: LayoutTests/fast/loader/unload-mutation-crash.html

Issue 495743003: Add an extra guard to replaceDocument() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Landing Created 6 years, 3 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
« no previous file with comments | « no previous file | LayoutTests/fast/loader/unload-mutation-crash-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 <script>
2 if (window.testRunner)
3 window.testRunner.dumpAsText();
4
5 function start() {
6 window.firstFrame = document.createElement('iframe');
7 document.body.appendChild(window.firstFrame);
8 window.secondFrame = document.createElement('iframe');
9 window.secondFrame.src = 'javascript:window.top.maybeStart();';
10 window.firstFrame.contentDocument.documentElement.appendChild(window.secondFra me);
11 }
12
13 function maybeStart() {
14 window.secondFrame.contentWindow.onunload = function() {
15 document.documentElement.removeChild(window.bodyEl);
16 };
17
18 window.firstFrame.src = 'javascript:"";';
19 console.log("PASS unless crash.");
20 }
21 </script>
22 <body id=bodyEl onload=start()></body>
23 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/loader/unload-mutation-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698