[webkit-changes] [WebKit/WebKit] a76b57: _wasPrivateRelayed is always true for custom schemes

Charlie Wolfe noreply at github.com
Thu May 11 16:44:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a76b570905e94edbe99de719123a9c1093cf1a47
      https://github.com/WebKit/WebKit/commit/a76b570905e94edbe99de719123a9c1093cf1a47
  Author: Charlie Wolfe <charliew at apple.com>
  Date:   2023-05-11 (Thu, 11 May 2023)

  Changed paths:
    M Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/NetworkProcess.mm

  Log Message:
  -----------
  _wasPrivateRelayed is always true for custom schemes
https://bugs.webkit.org/show_bug.cgi?id=256659
rdar://109224804

Reviewed by Alex Christensen.

Non-special schemes always return a privacy stance of `nw_connection_privacy_stance_unknown`,
which we currently treat as being private relayed. These schemes will never be sent over
private relay; we should fix this by always setting privateRelayed to NO for non-special schemes.

* Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm:
(-[WKNetworkSessionDelegate URLSession:dataTask:didReceiveResponse:completionHandler:]):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/NetworkProcess.mm:

Canonical link: https://commits.webkit.org/263989@main




More information about the webkit-changes mailing list