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

Changeset 293699 in webkit


Ignore:
Timestamp:
May 2, 2022, 4:25:25 PM (4 years ago)
Author:
Alan Coon
Message:

Apply patch. rdar://problem/92617943

Location:
branches/safari-613-branch/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-613-branch/Source/WebKit/ChangeLog

    r293634 r293699  
     12022-05-02  Alan Coon  <alancoon@apple.com>
     2
     3        Apply patch. rdar://problem/92617943
     4
     5    2022-05-02  Alex Christensen  <achristensen@webkit.org>
     6
     7            Revert all use of _setPrivacyProxyFailClosedForUnreachableNonMainHosts
     8            https://bugs.webkit.org/show_bug.cgi?id=239977
     9            <rdar://92617943>
     10
     11            Due to what is likely confusion about internal integration processes,
     12            the powers that be have decided that the best course of action for now
     13            is to restore the status quo and accept any consequences that may entail.
     14
     15            * NetworkProcess/cocoa/NetworkDataTaskCocoa.mm:
     16            (WebKit::NetworkDataTaskCocoa::NetworkDataTaskCocoa):
     17            * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
     18            (WebKit::NetworkSessionCocoa::createWebSocketTask):
     19
    1202022-04-29  Alan Coon  <alancoon@apple.com>
    221
  • branches/safari-613-branch/Source/WebKit/NetworkProcess/cocoa/NetworkDataTaskCocoa.mm

    r293002 r293699  
    340340    RetainPtr<NSURLRequest> nsRequest = request.nsURLRequest(WebCore::HTTPBodyUpdatePolicy::UpdateHTTPBody);
    341341    RetainPtr<NSMutableURLRequest> mutableRequest = adoptNS([nsRequest.get() mutableCopy]);
    342 
    343     if (parameters.isMainFrameNavigation
    344         || parameters.hadMainFrameMainResourcePrivateRelayed
    345         || !parameters.topOrigin
    346         || request.url().host() == parameters.topOrigin->host()) {
    347         if ([mutableRequest respondsToSelector:@selector(_setPrivacyProxyFailClosedForUnreachableNonMainHosts:)])
    348             [mutableRequest _setPrivacyProxyFailClosedForUnreachableNonMainHosts:YES];
    349     }
    350342
    351343#if ENABLE(APP_PRIVACY_REPORT)
  • branches/safari-613-branch/Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm

    r293002 r293699  
    17171717#endif
    17181718
    1719     // FIXME: This function can make up to 3 copies of a request.
    1720     // Reduce that to one if the protocol is null, the request isn't app initiated,
    1721     // or the main frame main resource was private relayed, then set all properties
    1722     // on the one copy.
    1723     if (hadMainFrameMainResourcePrivateRelayed || request.url().host() == clientOrigin.topOrigin.host) {
    1724         RetainPtr<NSMutableURLRequest> mutableRequest = adoptNS([nsRequest.get() mutableCopy]);
    1725         if ([mutableRequest respondsToSelector:@selector(_setPrivacyProxyFailClosedForUnreachableNonMainHosts:)])
    1726             [mutableRequest _setPrivacyProxyFailClosedForUnreachableNonMainHosts:YES];
    1727         nsRequest = WTFMove(mutableRequest);
    1728     }
    1729 
    17301719    auto& sessionSet = sessionSetForPage(webPageProxyID);
    17311720    RetainPtr<NSURLSessionWebSocketTask> task = [sessionSet.sessionWithCredentialStorage.session webSocketTaskWithRequest:nsRequest.get()];
Note: See TracChangeset for help on using the changeset viewer.