Index: LayoutTests/fast/loader/stateobjects/document-destroyed-navigate-back.html |
diff --git a/LayoutTests/fast/loader/stateobjects/document-destroyed-navigate-back.html b/LayoutTests/fast/loader/stateobjects/document-destroyed-navigate-back.html |
index 6776db63d4d32b0223567bcfd3456eac169a0a63..02937d2d36c670b52327c18e6bbe89173a41200e 100644 |
--- a/LayoutTests/fast/loader/stateobjects/document-destroyed-navigate-back.html |
+++ b/LayoutTests/fast/loader/stateobjects/document-destroyed-navigate-back.html |
@@ -42,20 +42,8 @@ function runTest() |
runThirdStageOfTest(); |
} |
-var beganTest = false; |
- |
function statePopped() |
{ |
- // The first time popstate fires, it's because the page has finished loading. |
- // Only then can we begin the test. |
- if (!beganTest) { |
- beganTest = true; |
- runTest(); |
- // Continue with the handler if we've already began the test. |
- if (!sessionStorage.stage) |
- return; |
- } |
- |
alert("State popped - " + event.state + " (type " + typeof event.state + ")"); |
if (event.state == "FirstEntry") { |
history.replaceState("FirstEntryWillLaterBeReactivated", null, "?FirstEntryWillLaterBeReactivated"); |
@@ -74,7 +62,7 @@ function statePopped() |
} |
</script> |
-<body onpopstate="statePopped();" onunload="/* disable page cache */"> |
+<body onload="runTest();" onpopstate="statePopped();" onunload="/* disable page cache */"> |
<pre> |
This test: |
-Builds up a list of state object entries with fragment URLs. |