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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/misc/window-open-then-write.html

Issue 2735183003: PlzNavigate: stop navigations when opening a document for write (Closed)
Patch Set: Created 3 years, 9 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 <html> 1 <html>
2 <script> 2 <script>
3 if (window.testRunner) { 3 if (window.testRunner) {
4 testRunner.waitUntilDone(); 4 testRunner.waitUntilDone();
5 testRunner.setCanOpenWindows(); 5 testRunner.setCanOpenWindows();
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 } 7 }
8 8
9 function runTest() { 9 function runTest() {
10 var w = window.open('window-open-then-write.html'); 10 var w = window.open('window-open-then-write.html');
11 w.document.write('<img src="resources/compass.jpg" onload="if (window.testRu nner) setTimeout(\'testRunner.notifyDone()\', 100);">'); 11 w.document.write('<img src="resources/compass.jpg" onload="if (window.testRu nner) setTimeout(\'testRunner.notifyDone()\', 500);">');
Nate Chapin 2017/03/07 18:39:08 What's the reason for extending this timeout? Is t
clamy 2017/03/13 13:55:57 Sorry this was for testing. I needed to trigger a
12 w.document.close(); 12 w.document.close();
13 } 13 }
14 </script> 14 </script>
15 <body onload="runTest();"> 15 <body onload="runTest();">
16 <div>This tests that calling window.open() with a URL and then writing to the wi ndow using document.write still causes the WebFrame in question to have a correc t WebDataSource.</div> 16 <div>This tests that calling window.open() with a URL and then writing to the wi ndow using document.write still causes the WebFrame in question to have a correc t WebDataSource.</div>
17 <div>SUCCESS! Did not assert!</div> 17 <div>SUCCESS! Did not assert!</div>
18 </body> 18 </body>
19 </html> 19 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698