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

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

Issue 136463002: Don't fire popstate event on initial document load (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 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 c83f9c82804dc287b0b3d479e2c07fecd8596e52..533c95a7d9feeafc177112a2b0aabd66243f6db5 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,15 +1,13 @@
<script>
+onload = function() {
arv (Not doing code reviews) 2014/01/13 14:26:44 window.onload = function() { for clarity
Jens Widell 2014/01/13 14:57:05 Prefix added here and below.
+ top.opener.windowLoaded();
+}
+
onunload = function() {
arv (Not doing code reviews) 2014/01/13 14:26:44 do you mind changing this too?
// No page cache
}
onpopstate = function(e) {
- if (!sessionStorage.beganTest) {
- sessionStorage.beganTest = true;
- top.opener.windowLoaded();
- return;
- }
-
alert("onpopstate");
top.opener.notifyDone(window == parent ? "FAIL" : "PASS");
}
« no previous file with comments | « LayoutTests/fast/loader/stateobjects/replacestate-then-pushstate.html ('k') | Source/core/frame/DOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698