| Index: LayoutTests/fast/loader/stateobjects/pushstate-then-replacestate.html | 
| diff --git a/LayoutTests/fast/loader/stateobjects/pushstate-then-replacestate.html b/LayoutTests/fast/loader/stateobjects/pushstate-then-replacestate.html | 
| index 9ea3b972a69a4c6990e99c5f6dc211041ed645bd..d3de76ec5286a05fad726810cc672f7c937243fb 100644 | 
| --- a/LayoutTests/fast/loader/stateobjects/pushstate-then-replacestate.html | 
| +++ b/LayoutTests/fast/loader/stateobjects/pushstate-then-replacestate.html | 
| @@ -22,18 +22,8 @@ function runTest() | 
| history.back(); | 
| } | 
|  | 
| -var beganTest = false; | 
| - | 
| onpopstate = function(event) | 
| { | 
| -    // 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(); | 
| -        return; | 
| -    } | 
| - | 
| log("State popped - " + event.state + " (type " + typeof event.state + ")"); | 
| if (event.state == null) | 
| history.forward(); | 
| @@ -42,7 +32,7 @@ onpopstate = function(event) | 
| } | 
|  | 
| </script> | 
| -<body> | 
| +<body onload="runTest();"> | 
| <pre> | 
| This test does the following: | 
| -Makes a call to pushState() | 
|  |