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

Side by Side 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 unified diff | Download patch
OLDNEW
1 <script> 1 <script>
2 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.
3 top.opener.windowLoaded();
4 }
5
2 onunload = function() { 6 onunload = function() {
arv (Not doing code reviews) 2014/01/13 14:26:44 do you mind changing this too?
3 // No page cache 7 // No page cache
4 } 8 }
5 9
6 onpopstate = function(e) { 10 onpopstate = function(e) {
7 if (!sessionStorage.beganTest) {
8 sessionStorage.beganTest = true;
9 top.opener.windowLoaded();
10 return;
11 }
12
13 alert("onpopstate"); 11 alert("onpopstate");
14 top.opener.notifyDone(window == parent ? "FAIL" : "PASS"); 12 top.opener.notifyDone(window == parent ? "FAIL" : "PASS");
15 } 13 }
16 </script> 14 </script>
OLDNEW
« 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