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

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

Issue 2487403002: Allow navigations to frames that aren't being unloaded in the unload handler. (Closed)
Patch Set: fix test Created 4 years 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
(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 navigation in the unload handler succeeds if it's targeting a frame that's not being unloaded.");
7 function complete() {
8 test.done();
9 }
10
11 window.onload = function() {
12 var frame = document.createElement('iframe');
13 document.body.appendChild(frame);
14
15 var sibling = document.createElement('iframe');
16 document.body.appendChild(sibling);
17
18 frame.contentWindow.onunload = function () {
19 sibling.contentWindow.location.href = 'resources/targeted-navigation-in-un load-handler-subframe.html';
20 }
21
22 setTimeout(function() {
23 frame.contentWindow.location.assign('about:blank');
24 }, 100);
25 }
26 </script>
27 </head>
28 <body>
29 </body>
30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698