Title: [293481] trunk/Source/WebKit
Revision
293481
Author
[email protected]
Date
2022-04-26 15:58:24 -0700 (Tue, 26 Apr 2022)

Log Message

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

Patch by Alex Christensen <[email protected]> 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:]):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (293480 => 293481)


--- trunk/Source/WebKit/ChangeLog	2022-04-26 22:57:36 UTC (rev 293480)
+++ trunk/Source/WebKit/ChangeLog	2022-04-26 22:58:24 UTC (rev 293481)
@@ -1,3 +1,16 @@
+2022-04-26  Alex Christensen  <[email protected]>
+
+        Adjust what we consider to be private relayed
+        https://bugs.webkit.org/show_bug.cgi?id=239784
+        <rdar://92336270>
+
+        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:]):
+
 2022-04-26  Elliott Williams  <[email protected]>
 
         Fix build error: "cp: _javascript_Core.profdata is not a directory"

Modified: trunk/Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm (293480 => 293481)


--- trunk/Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm	2022-04-26 22:57:36 UTC (rev 293480)
+++ trunk/Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm	2022-04-26 22:58:24 UTC (rev 293481)
@@ -936,7 +936,9 @@
 
         NSURLSessionTaskTransactionMetrics *metrics = taskMetrics.transactionMetrics.lastObject;
 #if HAVE(NETWORK_CONNECTION_PRIVACY_STANCE)
-        auto privateRelayed = metrics._privacyStance == nw_connection_privacy_stance_direct ? PrivateRelayed::No : PrivateRelayed::Yes;
+        auto privateRelayed = metrics._privacyStance == nw_connection_privacy_stance_direct
+            || metrics._privacyStance == nw_connection_privacy_stance_not_eligible
+            ? PrivateRelayed::No : PrivateRelayed::Yes;
 #else
         auto privateRelayed = PrivateRelayed::No;
 #endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to