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> |