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

Side by Side Diff: LayoutTests/fast/loader/stateobjects/resources/replacestate-in-iframe-window-child.html

Issue 680273004: Never fire popstate event when navigating between documents (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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
1 <script> 1 <script>
2 window.onload = function() {
3 if (!sessionStorage.beganTest) {
4 sessionStorage.beganTest = true;
5 top.opener.windowLoaded();
6 }
7 }
8
9 window.onunload = function() { 2 window.onunload = function() {
10 // No page cache 3 // No page cache
11 } 4 }
12 5
13 window.onpopstate = function(e) { 6 window.onpageshow = function(e) {
14 alert("onpopstate"); 7 alert("onpageshow");
15 top.opener.notifyDone(window == parent ? "FAIL" : "PASS"); 8 if (!sessionStorage.beganTest) {
9 sessionStorage.beganTest = true;
10 top.opener.windowLoaded();
11 } else {
12 top.opener.notifyDone(window == parent ? "FAIL" : "PASS");
13 }
16 } 14 }
17 </script> 15 </script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/loader/stateobjects/replacestate-in-iframe-expected.txt ('k') | Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698