Index: LayoutTests/fast/loader/stateobjects/document-destroyed-navigate-back-with-fragment-scroll.html |
diff --git a/LayoutTests/fast/loader/stateobjects/document-destroyed-navigate-back-with-fragment-scroll.html b/LayoutTests/fast/loader/stateobjects/document-destroyed-navigate-back-with-fragment-scroll.html |
index 1f870cc4a343c18747db35cd5c01d285953c06eb..67bf15cb0ab7d9bfaf794965a5116b458aee7db2 100644 |
--- a/LayoutTests/fast/loader/stateobjects/document-destroyed-navigate-back-with-fragment-scroll.html |
+++ b/LayoutTests/fast/loader/stateobjects/document-destroyed-navigate-back-with-fragment-scroll.html |
@@ -48,20 +48,8 @@ function runTest() |
runThirdStageOfTest(); |
} |
-var beganTest = false; |
- |
onpopstate = function() |
{ |
- // 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 + ")"); |
// FIXME: Once the popstate and hashchange events fire asynchronously, we |
@@ -96,7 +84,7 @@ onhashchange = function(event) |
} |
</script> |
-<body onunload="/* disable page cache */"> |
+<body onload="runTest();" onunload="/* disable page cache */"> |
<pre> |
This test: |
-Builds up a list of state object entries with fragment URLs. |