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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/alert-in-beforeunload-document-write.html

Issue 1415773002: Don't change Document load progress in any page dismissal events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2490
Patch Set: Created 5 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/alert-in-beforeunload-document-write-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <script>
4 function runTest()
5 {
6 if (window.testRunner) {
7 testRunner.waitUntilDone();
8 testRunner.dumpAsText();
9 document.querySelector('iframe').onload = function () { testRunner.notif yDone(); };
10 }
11 window[0].onbeforeunload = function() { window[0].document.write("<script>al ert('hello world!');</scr" + "ipt>"); }
12 window[0].location = 'data:text/plain,Done!';
13 }
14 </script>
15 <body onload="runTest()">
16 <p>Test that alert() inside a document.write() during a beforeunload handler doe s not confuse the modal dialog blocker. This test passes if no alert() dialogs a re seen.
17 <iframe>
18 </iframe>
19 </body>
20 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/alert-in-beforeunload-document-write-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698