WebCore:
authorlevin@chromium.org <levin@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Mar 2009 22:29:54 +0000 (22:29 +0000)
committerlevin@chromium.org <levin@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Mar 2009 22:29:54 +0000 (22:29 +0000)
commitb6c320811b04e48caa9921ca38b2c853c938c0eb
tree03588546cabb959d363e538dfecb1b9fe94e46ad
parent0cc398a558dd3699ee02fbbb6ceac720d3af8e58
WebCore:

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

        Reviewed by Alexey Proskuryakov.

        Bug 24337: Assert when doing sync XHR in a worker for a cacheable response.
        <https://bugs.webkit.org/show_bug.cgi?id=24337>

        Tests: http/tests/xmlhttprequest/access-control-basic-denied-preflight-cache.html
               http/tests/xmlhttprequest/workers/xmlhttprequest-file-not-found.html

        * loader/mac/ResourceLoaderMac.mm:
        (WebCore::ResourceLoader::willCacheResponse):
        An identifier is only asssigned if resource load callbacks are done.  So don't send
        willCacheResponse which uses identifier if resource load callbacks aren't being sent.

LayoutTests:

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

        Reviewed by Alexey Proskuryakov.

        Bug 24337: Assert when doing sync XHR in a worker for a cacheable response.
        <https://bugs.webkit.org/show_bug.cgi?id=24337>

        * http/tests/xmlhttprequest/access-control-basic-denied-preflight-cache-expected.txt: Added.
        * http/tests/xmlhttprequest/access-control-basic-denied-preflight-cache.html: Added.
        * http/tests/xmlhttprequest/workers/resources/xmlhttprequest-file-not-found.js: Added.
        (log):
        (done):
        * http/tests/xmlhttprequest/workers/xmlhttprequest-file-not-found-expected.txt: Added.
        * http/tests/xmlhttprequest/workers/xmlhttprequest-file-not-found.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@41434 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/xmlhttprequest/access-control-basic-denied-preflight-cache-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/xmlhttprequest/access-control-basic-denied-preflight-cache.html [new file with mode: 0644]
LayoutTests/http/tests/xmlhttprequest/workers/resources/xmlhttprequest-file-not-found.js [new file with mode: 0644]
LayoutTests/http/tests/xmlhttprequest/workers/xmlhttprequest-file-not-found-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/xmlhttprequest/workers/xmlhttprequest-file-not-found.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/loader/mac/ResourceLoaderMac.mm