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

Changeset 283400 in webkit


Ignore:
Timestamp:
Oct 1, 2021, 2:08:03 PM (5 years ago)
Author:
Alan Coon
Message:

Apply patch. rdar://problem/81175635

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-611.4.2.0-branch/Source/WebKit/NetworkProcess/NetworkLoadChecker.cpp

    r283382 r283400  
    252252    ResourceRequest originalRequest = request;
    253253
    254     applyHTTPSUpgradeIfNeeded(WTFMove(request), [this, weakThis = makeWeakPtr(*this), client, handler = WTFMove(handler), originalRequest = WTFMove(originalRequest)](auto&& request) mutable {
     254    applyHTTPSUpgradeIfNeeded(WTFMove(request), [this, weakThis = makeWeakPtr(*this), client, handler = WTFMove(handler), originalRequest = WTFMove(originalRequest), preRedirectURL = WTFMove(preRedirectURL)](auto&& request) mutable {
    255255        if (!weakThis)
    256256            return handler({ ResourceError { ResourceError::Type::Cancellation }});
     
    315315    case FetchOptions::Destination::Serviceworker:
    316316    case FetchOptions::Destination::Sharedworker:
    317         return contentSecurityPolicy->allowChildContextFromSource(request.url(), redirectResponseReceived, preRedirectURL);
     317        return contentSecurityPolicy->allowChildContextFromSource(request.url(), redirectResponseReceived);
    318318    case FetchOptions::Destination::Script:
    319319        if (request.requester() == ResourceRequest::Requester::ImportScripts && !contentSecurityPolicy->allowScriptFromSource(request.url(), redirectResponseReceived))
     
    322322        return true;
    323323    case FetchOptions::Destination::EmptyString:
    324         return contentSecurityPolicy->allowConnectToSource(request.url(), redirectResponseReceived);
     324        return contentSecurityPolicy->allowConnectToSource(request.url(), redirectResponseReceived, preRedirectURL);
    325325    case FetchOptions::Destination::Audio:
    326326    case FetchOptions::Destination::Document:
Note: See TracChangeset for help on using the changeset viewer.