Changeset 160836 in webkit


Ignore:
Timestamp:
Dec 19, 2013 9:32:49 AM (10 years ago)
Author:
mitz@apple.com
Message:

<rdar://problem/15696824> [CFNetwork] Loading stops at server redirects
https://bugs.webkit.org/show_bug.cgi?id=125984

Reviewed by Anders Carlsson.

  • platform/network/cf/ResourceHandleCFNet.cpp:

(WebCore::ResourceHandle::willSendRequest): If the client uses async callbacks, call its
willSendRequestAsync callback instead if willSendRequest.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r160830 r160836  
     12013-12-19  Dan Bernstein  <mitz@apple.com>
     2
     3        <rdar://problem/15696824> [CFNetwork] Loading stops at server redirects
     4        https://bugs.webkit.org/show_bug.cgi?id=125984
     5
     6        Reviewed by Anders Carlsson.
     7
     8        * platform/network/cf/ResourceHandleCFNet.cpp:
     9        (WebCore::ResourceHandle::willSendRequest): If the client uses async callbacks, call its
     10        willSendRequestAsync callback instead if willSendRequest.
     11
    1122013-12-19  Andreas Kling  <akling@apple.com>
    213
  • trunk/Source/WebCore/platform/network/cf/ResourceHandleCFNet.cpp

    r160467 r160836  
    280280
    281281    Ref<ResourceHandle> protect(*this);
    282     client()->willSendRequest(this, request, redirectResponse);
    283 
    284     // Client call may not preserve the session, especially if the request is sent over IPC.
    285     if (!request.isNull()) {
    286         request.setStorageSession(d->m_storageSession.get());
    287 
    288         d->m_currentRequest = request;
     282    if (client()->usesAsyncCallbacks())
     283        client()->willSendRequestAsync(this, request, redirectResponse);
     284    else {
     285        client()->willSendRequest(this, request, redirectResponse);
     286
     287        // Client call may not preserve the session, especially if the request is sent over IPC.
     288        if (!request.isNull()) {
     289            request.setStorageSession(d->m_storageSession.get());
     290
     291            d->m_currentRequest = request;
     292        }
    289293    }
    290294}
Note: See TracChangeset for help on using the changeset viewer.