Bug 240483

Summary: Private relay should fail closed for third party loads if the main resource was loaded over private relay
Product: WebKit Reporter: Alex Christensen <achristensen>
Component: New BugsAssignee: Alex Christensen <achristensen>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, cgarcia, commit-queue, ews-watchlist, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 240740    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Patch
none
reverting patch
none
Patch none

Description Alex Christensen 2022-05-16 15:21:03 PDT
Private relay should fail closed for third party loads if the main resource was loaded over private relay
Comment 1 Alex Christensen 2022-05-16 15:25:37 PDT
Created attachment 459458 [details]
Patch
Comment 2 Alex Christensen 2022-05-16 15:25:41 PDT
<rdar://problem/92697007>
Comment 3 Alex Christensen 2022-05-17 15:19:28 PDT
Created attachment 459518 [details]
Patch
Comment 4 EWS 2022-05-17 17:56:41 PDT
Committed r294371 (250670@main): <https://commits.webkit.org/250670@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 459518 [details].
Comment 5 WebKit Commit Bot 2022-05-20 15:13:14 PDT
Re-opened since this is blocked by bug 240740
Comment 6 Alex Christensen 2022-05-20 15:40:37 PDT
Created attachment 459629 [details]
reverting patch
Comment 7 Alex Christensen 2022-05-20 20:23:12 PDT
Created attachment 459635 [details]
Patch
Comment 8 Alex Christensen 2022-05-23 09:38:56 PDT
I verified that, when opening several news sites, the patch from 5/17 had some differences between whether it calls _setPrivacyProxyFailClosedForUnreachableNonMainHosts on requests to the same hosts, which would cause different TCP connections to be made, which explains the performance regression.

I verified that the patch from 5/20 does not do this.
Comment 9 Chris Dumez 2022-05-23 09:41:39 PDT
Comment on attachment 459635 [details]
Patch

r=me
Comment 10 EWS 2022-05-24 12:36:10 PDT
Committed r294757 (250925@main): <https://commits.webkit.org/250925@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 459635 [details].