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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/navigation/hash-navigation-un-unload-handler.html

Issue 2206843003: Disable navigations in the unload handler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add layouttest Created 4 years, 3 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/http/tests/navigation/hash-navigation-un-unload-handler-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 <html>
2 <head>
3 <script>
4 window.onload = function () {
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.waitUntilDone();
8 }
9 var i = document.createElement('iframe');
10 document.body.appendChild(i);
11 i.contentWindow.onunload = function () {
12 i.contentWindow.location.hash = '#hash';
13 }
14 setTimeout(function () {
15 i.contentWindow.location.assign('about:blank');
16 setTimeout(function () {
17 if (window.testRunner) {
18 if (!i.contentWindow.location.hash && i.contentWindow.location.h ref == 'about:blank') {
19 document.writeln("TEST PASSED");
dcheng 2016/08/25 18:51:40 I think we have a pretty strong preference to writ
20 }
21 testRunner.notifyDone();
22 }
23 }, 100);
24 }, 100);
25 }
26 </script>
27 </head>
28 <body>
29 This test tests that a hash navigation in the unload handler will not block the initial navigation.
30 </body>
31 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/navigation/hash-navigation-un-unload-handler-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698