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

Unified 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, 2 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/loader/stateobjects/resources/replacestate-in-iframe-window-child.html
diff --git a/LayoutTests/fast/loader/stateobjects/resources/replacestate-in-iframe-window-child.html b/LayoutTests/fast/loader/stateobjects/resources/replacestate-in-iframe-window-child.html
index 970d6c4936080fdbf5d1614303b6ab9e3a469f05..1be76c064faba0e041f8ddfd257ad32e485ed56a 100644
--- a/LayoutTests/fast/loader/stateobjects/resources/replacestate-in-iframe-window-child.html
+++ b/LayoutTests/fast/loader/stateobjects/resources/replacestate-in-iframe-window-child.html
@@ -1,17 +1,15 @@
<script>
-window.onload = function() {
- if (!sessionStorage.beganTest) {
- sessionStorage.beganTest = true;
- top.opener.windowLoaded();
- }
-}
-
window.onunload = function() {
// No page cache
}
-window.onpopstate = function(e) {
- alert("onpopstate");
- top.opener.notifyDone(window == parent ? "FAIL" : "PASS");
+window.onpageshow = function(e) {
+ alert("onpageshow");
+ if (!sessionStorage.beganTest) {
+ sessionStorage.beganTest = true;
+ top.opener.windowLoaded();
+ } else {
+ top.opener.notifyDone(window == parent ? "FAIL" : "PASS");
+ }
}
</script>
« 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