WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
233900
Reload web views when toggling the captive portal mode at system level
https://bugs.webkit.org/show_bug.cgi?id=233900
Summary
Reload web views when toggling the captive portal mode at system level
Chris Dumez
Reported
2021-12-06 16:14:08 PST
Reload web views when toggling the captive portal mode at system level, so that the views end up being backed by WebProcesses with the proper captive portal mode.
Attachments
Patch
(5.22 KB, patch)
2021-12-06 16:15 PST
,
Chris Dumez
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Patch
(5.43 KB, patch)
2021-12-06 16:37 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(10.67 KB, patch)
2021-12-07 08:28 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(10.67 KB, patch)
2021-12-07 09:10 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2021-12-06 16:15:46 PST
Created
attachment 446091
[details]
Patch
Chris Dumez
Comment 2
2021-12-06 16:37:40 PST
Created
attachment 446096
[details]
Patch
Brent Fulgham
Comment 3
2021-12-06 16:42:01 PST
Comment on
attachment 446096
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=446096&action=review
r=me
> Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm:979 > + page->reload({ });
Is the 'reload' process smart enough to handle cases where something is opted-out?
Chris Dumez
Comment 4
2021-12-06 17:16:29 PST
(In reply to Brent Fulgham from
comment #3
)
> Comment on
attachment 446096
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=446096&action=review
> > r=me > > > Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm:979 > > + page->reload({ }); > > Is the 'reload' process smart enough to handle cases where something is > opted-out?
The reload process will trigger a decidePolicyForNavigationAction and it is up to the client app to override via WKWebpagePreferences then. I guess it is not ideal in this case since we're going to reload unnecessarily in such case. Not sure how to best deal with this.
Chris Dumez
Comment 5
2021-12-07 08:07:25 PST
(In reply to Chris Dumez from
comment #4
)
> (In reply to Brent Fulgham from
comment #3
) > > Comment on
attachment 446096
[details]
> > Patch > > > > View in context: > >
https://bugs.webkit.org/attachment.cgi?id=446096&action=review
> > > > r=me > > > > > Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm:979 > > > + page->reload({ }); > > > > Is the 'reload' process smart enough to handle cases where something is > > opted-out? > > The reload process will trigger a decidePolicyForNavigationAction and it is > up to the client app to override via WKWebpagePreferences then. I guess it > is not ideal in this case since we're going to reload unnecessarily in such > case. > > Not sure how to best deal with this.
I *think* I can keep track of which views relied on the system setting and which views were explicitly opted in or out via WKWebpagePreferences. Then I would only reload the ones that relied on the system setting. I am looking into this now.
Chris Dumez
Comment 6
2021-12-07 08:28:50 PST
Created
attachment 446175
[details]
Patch
Chris Dumez
Comment 7
2021-12-07 09:10:59 PST
Created
attachment 446183
[details]
Patch
EWS
Comment 8
2021-12-07 11:36:07 PST
Committed
r286602
(
244927@trunk
): <
https://commits.webkit.org/244927@trunk
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 446183
[details]
.
Radar WebKit Bug Importer
Comment 9
2021-12-07 11:37:26 PST
<
rdar://problem/86168069
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug