LayoutTests:
Reviewed by Maciej
Added test to cover bug http://bugs.webkit.org/show_bug.cgi?id=11450
-Confirm there is no assert when nuking a frame with an active XMLHttpRequest load
-Confirm the correct state-change notifications for the request are dispatched
* http/tests/xmlhttprequest/frame-load-cancelled-abort-expected.txt: Added.
* http/tests/xmlhttprequest/frame-load-cancelled-abort.html: Added.
* http/tests/xmlhttprequest/resources/endlessxml.php: Added.
* http/tests/xmlhttprequest/resources/frame-load-to-cancel.html: Added.
WebCore:
Reviewed by Maciej
If the request has already been aborted, bail out of didFinishLoading()
immediately. This prevents state change notifications that aren't
needed.
* xml/xmlhttprequest.cpp:
(WebCore::XMLHttpRequest::didFinishLoading):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17661
268f45cc-cd09-0410-ab3c-
d52691b4dbfc