Chromium Code Reviews

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.
Jump to:
View side-by-side diff with in-line comments
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