Bug 237735 - Adjust when _setPrivacyProxyFailClosedForUnreachableNonMainHosts is called
Summary: Adjust when _setPrivacyProxyFailClosedForUnreachableNonMainHosts is called
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Alex Christensen
URL:
Keywords: InRadar
: 237296 (view as bug list)
Depends on: 237829
Blocks:
  Show dependency treegraph
 
Reported: 2022-03-10 14:55 PST by Alex Christensen
Modified: 2022-06-23 15:37 PDT (History)
4 users (show)

See Also:


Attachments
Patch (3.40 KB, patch)
2022-03-10 14:57 PST, Alex Christensen
no flags Details | Formatted Diff | Diff
Patch (4.50 KB, patch)
2022-03-11 19:37 PST, Alex Christensen
no flags Details | Formatted Diff | Diff
Patch (4.52 KB, patch)
2022-03-17 11:30 PDT, Alex Christensen
no flags Details | Formatted Diff | Diff
Patch (4.45 KB, patch)
2022-04-13 17:17 PDT, Alex Christensen
no flags Details | Formatted Diff | Diff
Patch (4.39 KB, patch)
2022-04-13 17:18 PDT, Alex Christensen
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Christensen 2022-03-10 14:55:10 PST
Adjust when _setPrivacyProxyFailClosedForUnreachableNonMainHosts is called
Comment 1 Alex Christensen 2022-03-10 14:57:30 PST
Created attachment 454406 [details]
Patch
Comment 2 Alex Christensen 2022-03-10 14:57:34 PST
<rdar://problem/89972004>
Comment 3 Geoffrey Garen 2022-03-11 10:09:01 PST
Comment on attachment 454406 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=454406&action=review

r=me

> Source/WebKit/NetworkProcess/cocoa/NetworkDataTaskCocoa.mm:346
> +        || request.url().host() == parameters.topOrigin->host())

Is there a condition where (isMainFrameNavigation && parameters.topOrigin && request.url().host() != parameters.topOrigin->host())? If not, maybe we don't need to check isMainFrameNavigation.
Comment 4 Alex Christensen 2022-03-11 18:31:58 PST
Good point.  I also need to modify web sockets.
Comment 5 Alex Christensen 2022-03-11 18:54:32 PST
parameters.topOrigin is sometimes null and sometimes contains an origin with an empty host.  I'm going to stay on the safe side and keep the main frame main resource check.
Comment 6 Alex Christensen 2022-03-11 19:37:15 PST
Created attachment 454526 [details]
Patch
Comment 7 Alex Christensen 2022-03-11 19:38:05 PST
Comment on attachment 454526 [details]
Patch

I verified that this does not re-introduce the original issue.  Intuitively this should fix the perf regression, and I'll check it in and see if the bots agree.
Comment 8 EWS 2022-03-11 21:02:35 PST
Committed r291206 (248361@main): <https://commits.webkit.org/248361@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 454526 [details].
Comment 9 WebKit Commit Bot 2022-03-14 08:44:11 PDT
Re-opened since this is blocked by bug 237829
Comment 10 Alex Christensen 2022-03-17 11:30:00 PDT
Created attachment 454998 [details]
Patch
Comment 11 Geoffrey Garen 2022-03-17 11:48:19 PDT
Comment on attachment 454998 [details]
Patch

r=me

Not sure what was wrong with the previous patch, or how this fixes it. Can you add that note in the ChangeLog?
Comment 12 Alex Christensen 2022-03-17 14:22:36 PDT
I'm under the impression that there was nothing wrong with the previous patch, but it was rolled out before the bots caught up to the fact that it fixed a performance regression.
Comment 13 Alex Christensen 2022-03-21 20:28:21 PDT
http://trac.webkit.org/r291598
Comment 14 Alex Christensen 2022-03-21 20:30:44 PDT
This was hopefully the final fix for rdar://88965550
Comment 15 Alex Christensen 2022-04-05 15:03:35 PDT
Reverting yet again in https://bugs.webkit.org/show_bug.cgi?id=238842
Comment 16 Alex Christensen 2022-04-13 17:17:41 PDT
Reopening to attach new patch.
Comment 17 Alex Christensen 2022-04-13 17:17:43 PDT
Created attachment 457579 [details]
Patch
Comment 18 Alex Christensen 2022-04-13 17:18:53 PDT
Created attachment 457580 [details]
Patch
Comment 19 Alex Christensen 2022-04-13 17:52:29 PDT
r292846
Comment 20 Brent Fulgham 2022-06-23 15:36:55 PDT
*** Bug 237296 has been marked as a duplicate of this bug. ***