⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 195399 in webkit


Ignore:
Timestamp:
Jan 20, 2016, 11:11:18 PM (11 years ago)
Author:
bshafiei@apple.com
Message:

Merged r195162. rdar://problem/23978912

Location:
branches/safari-601.1.46-branch
Files:
4 edited
4 copied

Legend:

Unmodified
Added
Removed
  • branches/safari-601.1.46-branch/LayoutTests/ChangeLog

    r195373 r195399  
     12016-01-20  Babak Shafiei  <bshafiei@apple.com>
     2
     3        Merge r195162.
     4
     5    2016-01-15  Jiewen Tan  <jiewen_tan@apple.com>
     6
     7            FrameLoaderClient::didReceiveServerRedirectForProvisionalLoadForFrame() is never called when loading a main resource from the memory cache
     8            https://bugs.webkit.org/show_bug.cgi?id=152520
     9            <rdar://problem/23305737>
     10
     11            Reviewed by Andy Estes.
     12
     13            * http/tests/loading/resources/server-redirect-result.html: Added.
     14            * http/tests/loading/resources/server-redirect.php: Added.
     15            * http/tests/loading/server-redirect-for-provisional-load-caching-expected.txt: Added.
     16            * http/tests/loading/server-redirect-for-provisional-load-caching.html: Added.
     17
    1182016-01-20  Matthew Hanson  <matthew_hanson@apple.com>
    219
  • branches/safari-601.1.46-branch/Source/WebCore/ChangeLog

    r195385 r195399  
     12016-01-20  Babak Shafiei  <bshafiei@apple.com>
     2
     3        Merge r195162.
     4
     5    2016-01-15  Jiewen Tan  <jiewen_tan@apple.com>
     6
     7            FrameLoaderClient::didReceiveServerRedirectForProvisionalLoadForFrame() is never called when loading a main resource from the memory cache
     8            https://bugs.webkit.org/show_bug.cgi?id=152520
     9            <rdar://problem/23305737>
     10
     11            Reviewed by Andy Estes.
     12
     13            Test: http/tests/loading/server-redirect-for-provisional-load-caching.html
     14
     15            * loader/DocumentLoader.cpp:
     16            (WebCore::DocumentLoader::responseReceived):
     17            Dispatch message to notify client that a cached resource was redirected. So,
     18            client can make proper actions to treat server side redirection.
     19            * loader/cache/CachedRawResource.h:
     20            Add a method to tell whether the cached resource was redirected.
     21
    1222016-01-20  Timothy Hatcher  <timothy@apple.com>
    223
  • branches/safari-601.1.46-branch/Source/WebCore/loader/DocumentLoader.cpp

    r194995 r195399  
    664664
    665665    if (m_identifierForLoadWithoutResourceLoader) {
     666        if (m_mainResource && m_mainResource->wasRedirected()) {
     667            ASSERT(m_mainResource->status() == CachedResource::Status::Cached);
     668            frameLoader()->client().dispatchDidReceiveServerRedirectForProvisionalLoad();
     669        }
    666670        addResponse(m_response);
    667671        frameLoader()->notifier().dispatchDidReceiveResponse(this, m_identifierForLoadWithoutResourceLoader, m_response, 0);
  • branches/safari-601.1.46-branch/Source/WebCore/loader/cache/CachedRawResource.h

    r184069 r195399  
    4646
    4747    void clear();
     48
     49    bool wasRedirected() const { return !m_redirectChain.isEmpty(); };
    4850
    4951private:
Note: See TracChangeset for help on using the changeset viewer.