4 <script src="../../js-test-resources/js-test-pre.js"></script>
7 <p id="description"></p>
8 <div id="console"></div>
11 description('Tests that an onload handler that runs history.back() that\'s triggered by a history.back() doesn\'t crash the browser (see http://crbug.com/59554 for more details).');
15 if (window.localStorage.started) {
16 delete window.localStorage.started;
19 // To make sure that we hit this branch, log this to the console so that
20 // it shows up in expected output (debug() will be blown away once we
22 console.log('Starting test.');
23 window.localStorage.started = true;
24 // Navigate in a timeout to make sure we create a history entry.
25 setTimeout(function() {
26 window.location.href = 'resources/back-during-onload-container.html';
31 var jsTestIsAsync = true;
34 <script src="../../js-test-resources/js-test-post.js"></script>