LayoutTests:
authorbeidson <beidson@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Nov 2006 10:02:03 +0000 (10:02 +0000)
committerbeidson <beidson@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Nov 2006 10:02:03 +0000 (10:02 +0000)
commitd3be2fee053a6be7fb964ba944b05c9897fcba01
tree419850cbd4a28634dc176c243478bffe5ffb7c05
parente97050f28086f82a061efc9188ec979c3afa6172
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
LayoutTests/ChangeLog
LayoutTests/http/tests/xmlhttprequest/frame-load-cancelled-abort-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/xmlhttprequest/frame-load-cancelled-abort.html [new file with mode: 0644]
LayoutTests/http/tests/xmlhttprequest/resources/endlessxml.php [new file with mode: 0644]
LayoutTests/http/tests/xmlhttprequest/resources/frame-load-to-cancel.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/xml/xmlhttprequest.cpp