WebCore:
authorlevin@chromium.org <levin@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Mar 2009 22:29:46 +0000 (22:29 +0000)
committerlevin@chromium.org <levin@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Mar 2009 22:29:46 +0000 (22:29 +0000)
commit0cc398a558dd3699ee02fbbb6ceac720d3af8e58
treebdc06a5b6748d09a7057793edd9a77e7a67ed475
parent8ccd81759a0bd561a92a00b3cc6ded4f5d0d303c
WebCore:

2009-03-04  David Levin  <levin@chromium.org>

        Reviewed by Alexey Proskuryakov.

        Bug 24330: Sync xhr in workers should send an abort exception when the worker is terminated.
        <https://bugs.webkit.org/show_bug.cgi?id=24330>

        Test: http/tests/xmlhttprequest/workers/abort-exception-assert.html

        * dom/ExceptionCode.cpp:
        (WebCore::xmlHttpRequestExceptionNames):
        Added missing ABORT_ERR whose absence caused an assert.

        * loader/WorkerThreadableLoader.cpp:
        (WebCore::WorkerThreadableLoader::loadResourceSynchronously):
        (WebCore::WorkerThreadableLoader::MainThreadBridge::cancel):
        Add more logic to handle the termination case for sync xhr.

LayoutTests:

2009-03-04  David Levin  <levin@chromium.org>

        Reviewed by Alexey Proskuryakov.

        Bug 24330: Sync xhr in workers should send an abort exception when the worker is terminated.
        <https://bugs.webkit.org/show_bug.cgi?id=24330>

        Added test to verify to terminate a worker while it is doing a synchronous xhr.
        It does not verify that the exception is a ABORT_ERR because I couldn't figure out a way
        to actually do this.

        * http/tests/xmlhttprequest/workers/abort-exception-assert-expected.txt: Added.
        * http/tests/xmlhttprequest/workers/abort-exception-assert.html: Added.
        * http/tests/xmlhttprequest/workers/resources/endless-response.php: Copied from LayoutTests/http/tests/xmlhttprequest/resources/endlessxml.php.
        * http/tests/xmlhttprequest/workers/resources/endless-sync-xhr.js: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@41433 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/xmlhttprequest/workers/abort-exception-assert-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/xmlhttprequest/workers/abort-exception-assert.html [new file with mode: 0644]
LayoutTests/http/tests/xmlhttprequest/workers/resources/endless-response.php [new file with mode: 0755]
LayoutTests/http/tests/xmlhttprequest/workers/resources/endless-sync-xhr.js [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/ExceptionCode.cpp
WebCore/loader/WorkerThreadableLoader.cpp