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>
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
)
25 log("Ready State: " + request
.readyState
);
27 log("Exception getting status: " + ex
.message
);
33 var item
= document
.createElement("li");
34 item
.appendChild(document
.createTextNode(message
));
35 consoleMessages
.appendChild(item
);
39 <iframe src=
"resources/xmlhttprequest-in-unload.html" width=
50 height=
10 border=
0></iframe>