| Index: LayoutTests/fast/loader/stateobjects/popstate-after-load-complete-body-attribute.html
|
| diff --git a/LayoutTests/fast/loader/stateobjects/popstate-after-load-complete-body-attribute.html b/LayoutTests/fast/loader/stateobjects/popstate-after-load-complete-body-attribute.html
|
| index 62959d246ef128512e451c572210e603187eeec0..8ee1d99b8def562d4f78ed4ac0cc395914e0912a 100644
|
| --- a/LayoutTests/fast/loader/stateobjects/popstate-after-load-complete-body-attribute.html
|
| +++ b/LayoutTests/fast/loader/stateobjects/popstate-after-load-complete-body-attribute.html
|
| @@ -20,18 +20,8 @@ function runTest()
|
| history.back();
|
| }
|
|
|
| -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();
|
| - return;
|
| - }
|
| -
|
| log("State popped - " + event.state + " (type " + typeof event.state + ")");
|
| if (event.state == null) {
|
| document.body.onpopstate = statePopped;
|
| @@ -41,7 +31,7 @@ function statePopped()
|
| }
|
|
|
| </script>
|
| -<body>
|
| +<body onload="runTest();">
|
| <pre>
|
| This test does the following:
|
| -Uses body.onpopstate to add a popstate handler (both by using the inline attribute and a script-assigned attribute)
|
|
|