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

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

Issue 2206843003: Disable navigations in the unload handler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: testharness.js 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/Source/core/frame/Deprecation.cpp » ('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 src="/resources/testharness.js"></script>
4 <script src="/resources/testharnessreport.js"></script>
5 <script>
6 var test = async_test("Tests that a hash navigation in the unload handler will n ot block the initial navigation");
7 window.onload = function() {
8 var i = document.createElement('iframe');
9 document.body.appendChild(i);
10 i.contentWindow.onunload = function () {
11 i.contentWindow.location.hash = '#hash';
12 }
13 setTimeout(function() {
14 i.contentWindow.location.assign('about:blank');
15 setTimeout(function() {
16 test.step(function() { assert_true(!i.contentWindow.location.hash && i.contentWindow.location.href == 'about:blank'); });
17 test.done();
18 }, 100);
19 }, 100);
20 }
21 </script>
22 </head>
23 <body>
24 </body>
25 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/Deprecation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698