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

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: fix replacestate-in-iframe test 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 onunload = function() { 2 window.onload = function() {
3 if (!sessionStorage.beganTest) {
4 sessionStorage.beganTest = true;
5 top.opener.windowLoaded();
6 }
7 }
8
9 window.onunload = function() {
3 // No page cache 10 // No page cache
4 } 11 }
5 12
6 onpopstate = function(e) { 13 window.onpopstate = function(e) {
7 if (!sessionStorage.beganTest) {
8 sessionStorage.beganTest = true;
9 top.opener.windowLoaded();
10 return;
11 }
12
13 alert("onpopstate"); 14 alert("onpopstate");
14 top.opener.notifyDone(window == parent ? "FAIL" : "PASS"); 15 top.opener.notifyDone(window == parent ? "FAIL" : "PASS");
15 } 16 }
16 </script> 17 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698