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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/onunload-window-property.html

Issue 2694903007: Add a warning for the deprecation of content-initiated data URL navigations (Closed)
Patch Set: creis comments 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 2
3 <head> 3 <head>
4 <script> 4 <script>
5 5
6 if (window.testRunner) { 6 if (window.testRunner) {
7 testRunner.dumpAsText(); 7 testRunner.dumpAsText();
8 testRunner.waitUntilDone(); 8 testRunner.waitUntilDone();
9 } 9 }
10 10
11 function unload() 11 function unload()
12 { 12 {
13 alert("unload"); 13 alert("unload");
14 } 14 }
15 15
16 function load() 16 function load()
17 { 17 {
18 window.onunload = unload; 18 window.onunload = unload;
19 location = "data:text/html,You should have seen an unload alert appear.<scri pt>if (window.testRunner) testRunner.notifyDone(); </" + "script>"; 19 location = "resources/onunload-single-alert-success.html";
20 } 20 }
21 21
22 </script> 22 </script>
23 </head> 23 </head>
24 24
25 <body onload="load()"> 25 <body onload="load()">
26 start document 26 start document
27 </body> 27 </body>
28 28
29 </html> 29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698