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

Side by Side Diff: third_party/WebKit/LayoutTests/printing/print-close-crash.html

Issue 2702503002: Block renderer-initiated main frame navigations to data URLs (Closed)
Patch Set: Fix Android PDF tests where PDFs should be downloaded 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 // DumpRenderTree requires waitUntilDone for this test even though it's not needed. 4 // DumpRenderTree requires waitUntilDone for this test even though it's not needed.
5 testRunner.waitUntilDone(); 5 testRunner.waitUntilDone();
6 testRunner.setCanOpenWindows(); 6 testRunner.setCanOpenWindows();
7 testRunner.setCloseRemainingWindowsWhenComplete(true); 7 testRunner.setCloseRemainingWindowsWhenComplete(true);
8 } 8 }
9 var w = window.open("data:text/html,foo"); 9 var w = window.open("about:blank");
10 w.print(); 10 w.print();
11 w.close(); 11 w.close();
12 12
13 window.onload = function() { 13 window.onload = function() {
14 if (window.testRunner) 14 if (window.testRunner)
15 testRunner.notifyDone(); 15 testRunner.notifyDone();
16 } 16 }
17 </script> 17 </script>
18 This test passes if it doesn't crash. 18 This test passes if it doesn't crash.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698