Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / xmlhttprequest / navigation-abort-detaches-frame.html
blobbfc16046f173385839180f750f9c195eb44126c2
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 function maybeTest()
7 if (window.testRunner) {
8 testRunner.dumpAsText();
9 testRunner.waitUntilDone();
10 startTest();
13 function startTest()
15 window[0].postMessage('start', '*');
17 function finishSoon()
19 window.setTimeout(finishTest, 0);
21 function finishTest()
23 if (window.testRunner)
24 testRunner.notifyDone();
26 </script>
27 </head>
28 <body onload="maybeTest()">
29 <iframe src="resources/navigation-abort-detaches-frame-subframe.html"></iframe>
30 <p>XHR abort handlers fire when their associated frame is navigated. This is a test that a XHR abort handler that destroys the navigating frame doesn't crash Blink.
31 <p>This test must be run via the HTTP test server. To execute it manually, click <button onclick="startTest()">here</a>.
32 </body>
33 </html>