• darin@chromium.org's avatar
    2009-11-24 Darin Fisher <darin@chromium.org> · acc8f482
    darin@chromium.org authored
            Reviewed by Adam Barth.
    
            [Chromium] Renderer hang when using www.expedia.com
            https://bugs.webkit.org/show_bug.cgi?id=31822
    
            Test: http/tests/cache/subresource-failover-to-network.html
    
            * loader/FrameLoader.cpp:
            (WebCore::FrameLoader::loadResourceSynchronously): Use the originalRequest
            when inheriting cache policy.  This matches SubresourceLoader::create.
    
    2009-11-24  Darin Fisher  <darin@chromium.org>
    
            Reviewed by Adam Barth.
    
            [Chromium] Renderer hang when using www.expedia.com
            https://bugs.webkit.org/show_bug.cgi?id=31822
    
            This test verifies that a synchronous XMLHttpRequest, generated from a
            page that is the result of a form submission, loads properly when the
            user navigates back to the page.
    
            When navigating back to a page that resulted from a form submission,
            the page is loaded with the ReturnCacheDataDontLoad cache policy.  It
            is important that subresources (including XMLHttpRequest instances) do
            not inherit this cache policy.
    
            * http/tests/cache/resources/echo-no-store.cgi: Added.
            * http/tests/cache/resources/subresource-failover-to-network.cgi: Added.
            * http/tests/cache/subresource-failover-to-network-expected.txt: Added.
            * http/tests/cache/subresource-failover-to-network.html: Added.
    
    2009-11-24  Darin Fisher  <darin@chromium.org>
    
            Reviewed by Adam Barth.
    
            [Chromium] Renderer hang when using www.expedia.com
            https://bugs.webkit.org/show_bug.cgi?id=31822
    
            * src/FrameLoaderClientImpl.cpp:
            (WebKit::FrameLoaderClientImpl::dispatchWillSendRequest):
            Assign ReturnCacheDataDontLoad cache policy at the last moment
            to match Safari.  This way the cache policy does not get stored
            in DocumentLoader's originalRequest preventing it from being
            inherited by subresource requests.
            * src/ResourceHandle.cpp:
            (WebCore::ResourceHandle::willLoadFromCache): Remove assignment
            of ReturnCacheDataDontLoad cache policy so that it doesn't end
            up applying to the DocumentLoader's originalRequest.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@51350 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    acc8f482