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

Side by Side Diff: LayoutTests/fast/loader/remove-iframe-during-history-navigation-different.html

Issue 145493005: Keep frames to navigate alive in HistoryController::goToEntry() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: improved as suggested in review Created 6 years, 11 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 | LayoutTests/fast/loader/remove-iframe-during-history-navigation-different-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 <!-- One iframe's popstate handler removes another iframe from the
2 document during a history navigation that affects both frames. The
3 history navigation loads a different document in the other frame.
4
5 Should not crash. -->
6
7 <script>
8 if (window.testRunner) {
9 testRunner.dumpAsText();
10 testRunner.waitUntilDone();
11 }
12
13 window.onload = function () {
14 frames[0].history.pushState("first", "first");
15 frames[0].onpopstate = function () {
16 document.body.innerHTML = "PASS";
17 if (window.testRunner)
18 testRunner.notifyDone();
19 };
20 document.querySelectorAll("iframe")[1].onload = function () {
21 setTimeout("history.go(-2);", 10);
22 };
23 setTimeout(function () {
24 frames[1].location.href = "resources/empty-subframe.html?new";
25 }, 10);
26 }
27 </script>
28
29 <body>
30 NOT TESTED
31 <iframe src="resources/empty-subframe.html"></iframe>
32 <iframe src="resources/empty-subframe.html"></iframe>
33 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/loader/remove-iframe-during-history-navigation-different-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698