| <p>This test ensures setting location.href with javascript scheme properly executes the script even while beforeunload event is being fired. You should see PASS 1/2 and PASS 2/2 below:</p> |
| testRunner.waitUntilDone(); |
| var log = document.getElementById('log'); |
| iframe.contentWindow.location.href = 'resources/before-unload-in-subframe-child.html'; |
| function fired(contentWindow) { |
| location.href = 'javascript:top.done()'; |
| <iframe onload="test(this);" src="resources/before-unload-in-subframe-child.html"></iframe> |