Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / xmlhttprequest / frame-unload-abort-crash.html
blob74ad6af43a013c9305a5405517b9b7946179a005
1 <html>
2 <body>
3 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=25394">bug 25394</a>: crash in DocumentLoader::addResponse due to bad |this| pointer</p>
4 <p>You should see a few messages followed by PASSED once. </p>
5 <script>
6 var consoleMessages = document.createElement("ul");
7 document.body.appendChild(consoleMessages);
9 if (window.testRunner) {
10 testRunner.waitUntilDone();
11 testRunner.dumpAsText();
14 function subframeLoaded()
16 var frameDiv = document.getElementById('framediv');
17 frameDiv.innerHTML = 'PASSED';
18 if (window.testRunner)
19 testRunner.notifyDone();
22 function dumpRequestStatus(request)
24 try {
25 log("Ready State: " + request.readyState);
26 } catch (ex) {
27 log("Exception getting status: " + ex.message);
31 function log(message)
33 var item = document.createElement("li");
34 item.appendChild(document.createTextNode(message));
35 consoleMessages.appendChild(item);
37 </script>
38 <div id="framediv">
39 <iframe src="resources/xmlhttprequest-in-unload.html" width=50 height=10 border=0></iframe>
40 </div>
41 </body>
42 </html>