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

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

Issue 2741513002: [Merge M-57] Add a warning for the deprecation of content-initiated data URL navigations (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 <body onunload="unload()" onload="load()"> 2 <body onunload="unload()" onload="load()">
3 <script> 3 <script>
4 if (window.testRunner) { 4 if (window.testRunner) {
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 testRunner.waitUntilDone(); 6 testRunner.waitUntilDone();
7 } 7 }
8 8
9 function load() 9 function load()
10 { 10 {
11 location = "data:text/html,You should have seen an unload alert appear.<scri pt>if (window.testRunner) testRunner.notifyDone(); </" + "script>"; 11 location = "resources/onunload-single-alert-success.html";
12 } 12 }
13 13
14 function unload() 14 function unload()
15 { 15 {
16 alert("unload"); 16 alert("unload");
17 } 17 }
18 </script> 18 </script>
19 start document 19 start document
20 </body> 20 </body>
21 </html> 21 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698