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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/sandboxed-opener-can-close-window.html

Issue 2792213002: Prevent layout tests from being broken by data URL deprecation. (Closed)
Patch Set: Created 3 years, 8 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
OLDNEW
1 <script> 1 <script>
2 if (window.testRunner) { 2 if (window.testRunner) {
3 testRunner.dumpAsText(); 3 testRunner.dumpAsText();
4 testRunner.dumpChildFramesAsText(); 4 testRunner.dumpChildFramesAsText();
5 testRunner.setCanOpenWindows(true); 5 testRunner.setCanOpenWindows(true);
6 testRunner.setCloseRemainingWindowsWhenComplete(true); 6 testRunner.setCloseRemainingWindowsWhenComplete(true);
7 } 7 }
8 </script> 8 </script>
9 <p>To run this test outside of DumpRenderTree, please disable your popup blocker !</p> 9 <p>To run this test outside of DumpRenderTree, please disable your popup blocker !</p>
10 <p>This test passes if it doesnt hang.</p> 10 <p>This test passes if it doesn't hang.</p>
11 <iframe sandbox="allow-scripts allow-popups" 11 <iframe sandbox="allow-scripts allow-popups"
12 src="data:text/html, 12 src="data:text/html,
13 <body><script> 13 <body><script>
14 var win = window.open('data:text/html,', '_blank'); 14 var win = window.open('about:blank', '_blank');
15 win.close(); 15 win.close();
16 document.body.appendChild( 16 document.body.appendChild(
17 document.createTextNode(win.closed ? 'PASS' : 'FAIL')); 17 document.createTextNode(win.closed ? 'PASS' : 'FAIL'));
18 </script></body>" 18 </script></body>"
19 ></iframe> 19 ></iframe>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698