Changeset 212530 in webkit


Ignore:
Timestamp:
Feb 16, 2017 9:28:18 PM (7 years ago)
Author:
matthew_hanson@apple.com
Message:

Merge r212330. rdar://problem/29899473

Location:
branches/safari-603-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-603-branch/Source/WebCore/ChangeLog

    r212529 r212530  
     12017-02-16  Matthew Hanson  <matthew_hanson@apple.com>
     2
     3        Merge r212330. rdar://problem/29899473
     4
     5    2017-02-14  Brady Eidson  <beidson@apple.com>
     6
     7            Speculative fix for: Crash in DocumentThreadableLoader::redirectReceived.
     8            <rdar://problem/29899473> and https://bugs.webkit.org/show_bug.cgi?id=168337
     9
     10            Reviewed by Geoffrey Garen.
     11
     12            No new tests (Unable to find a reproduction).
     13
     14            * loader/DocumentThreadableLoader.cpp:
     15            (WebCore::DocumentThreadableLoader::loadRequest):
     16
    1172017-02-16  Matthew Hanson  <matthew_hanson@apple.com>
    218
  • branches/safari-603-branch/Source/WebCore/loader/DocumentThreadableLoader.cpp

    r212059 r212530  
    362362void DocumentThreadableLoader::loadRequest(ResourceRequest&& request, SecurityCheckPolicy securityCheck)
    363363{
     364    Ref<DocumentThreadableLoader> protectedThis(*this);
     365
    364366    // Any credential should have been removed from the cross-site requests.
    365367    const URL& requestURL = request.url();
     
    383385
    384386        ASSERT(!m_resource);
     387        if (m_resource) {
     388            CachedResourceHandle<CachedRawResource> resource = std::exchange(m_resource, nullptr);
     389            resource->removeClient(*this);
     390        }
     391
    385392        // We create an URL here as the request will be moved in requestRawResource
    386393        URL requestUrl = newRequest.resourceRequest().url();
Note: See TracChangeset for help on using the changeset viewer.