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

Changeset 293481 in webkit


Ignore:
Timestamp:
Apr 26, 2022, 3:58:24 PM (4 years ago)
Author:
commit-queue@webkit.org
Message:

Adjust what we consider to be private relayed
​https://bugs.webkit.org/show_bug.cgi?id=239784
<rdar://92336270>

Patch by Alex Christensen <​achristensen@webkit.org> on 2022-04-26
Reviewed by Geoffrey Garen.

If a request is not eligible for private relay, then do not consider it having been private relayed.

  • NetworkProcess/cocoa/NetworkSessionCocoa.mm:

(-[WKNetworkSessionDelegate URLSession:dataTask:didReceiveResponse:completionHandler:]):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r293455 r293481  
     12022-04-26  Alex Christensen  <achristensen@webkit.org>
     2
     3        Adjust what we consider to be private relayed
     4        https://bugs.webkit.org/show_bug.cgi?id=239784
     5        <rdar://92336270>
     6
     7        Reviewed by Geoffrey Garen.
     8
     9        If a request is not eligible for private relay, then do not consider it having been private relayed.
     10
     11        * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
     12        (-[WKNetworkSessionDelegate URLSession:dataTask:didReceiveResponse:completionHandler:]):
     13
    1142022-04-26  Elliott Williams  <emw@apple.com>
    215
  • trunk/Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm

    r292846 r293481  
    937937        NSURLSessionTaskTransactionMetrics *metrics = taskMetrics.transactionMetrics.lastObject;
    938938#if HAVE(NETWORK_CONNECTION_PRIVACY_STANCE)
    939         auto privateRelayed = metrics._privacyStance == nw_connection_privacy_stance_direct ? PrivateRelayed::No : PrivateRelayed::Yes;
     939        auto privateRelayed = metrics._privacyStance == nw_connection_privacy_stance_direct
     940            || metrics._privacyStance == nw_connection_privacy_stance_not_eligible
     941            ? PrivateRelayed::No : PrivateRelayed::Yes;
    940942#else
    941943        auto privateRelayed = PrivateRelayed::No;
Note: See TracChangeset for help on using the changeset viewer.