WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
233954
Make KVO work for WKWebpagePreferences._captivePortalModeEnabled
https://bugs.webkit.org/show_bug.cgi?id=233954
Summary
Make KVO work for WKWebpagePreferences._captivePortalModeEnabled
Chris Dumez
Reported
2021-12-07 14:22:55 PST
Make KVO work for WKWebpagePreferences._captivePortalModeEnabled so that the client can observe when the system setting changes.
Attachments
Patch
(48.57 KB, patch)
2021-12-07 14:29 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(48.86 KB, patch)
2021-12-07 16:37 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(49.18 KB, patch)
2021-12-08 09:46 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2021-12-07 14:29:11 PST
Created
attachment 446237
[details]
Patch
Radar WebKit Bug Importer
Comment 2
2021-12-07 16:31:47 PST
<
rdar://problem/86182490
>
Chris Dumez
Comment 3
2021-12-07 16:37:42 PST
Created
attachment 446253
[details]
Patch
Alex Christensen
Comment 4
2021-12-08 09:09:02 PST
Comment on
attachment 446253
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=446253&action=review
> Source/WebKit/UIProcess/API/Cocoa/WKWebpagePreferences.mm:125 > +#if USE(APPLE_INTERNAL_SDK)
Why? Also, I don't see an implementation of this.
> Source/WebKit/UIProcess/API/Cocoa/WKWebpagePreferences.mm:138 > + id m_object;
WeakObjCPtr<id>
Chris Dumez
Comment 5
2021-12-08 09:10:54 PST
(In reply to Alex Christensen from
comment #4
)
> Comment on
attachment 446253
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=446253&action=review
> > > Source/WebKit/UIProcess/API/Cocoa/WKWebpagePreferences.mm:125 > > +#if USE(APPLE_INTERNAL_SDK) > > Why? > Also, I don't see an implementation of this.
Please see corresponding patch in Internal.
> > > Source/WebKit/UIProcess/API/Cocoa/WKWebpagePreferences.mm:138 > > + id m_object; > > WeakObjCPtr<id>
Ok.
Wenson Hsieh
Comment 6
2021-12-08 09:14:09 PST
Comment on
attachment 446253
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=446253&action=review
>>> Source/WebKit/UIProcess/API/Cocoa/WKWebpagePreferences.mm:125 >>> +#if USE(APPLE_INTERNAL_SDK) >> >> Why? >> Also, I don't see an implementation of this. > > Please see corresponding patch in Internal.
FWIW, `USE(APPLE_INTERNAL_SDK)` is typically only used to guard WKA header includes. You could do something here like: ``` #if USE(APPLE_INTERNAL_SDK) // include the WKA header #else // define empty method stubs #endif ``` …and then avoid having to use `USE(APPLE_INTERNAL_SDK)` here.
Chris Dumez
Comment 7
2021-12-08 09:46:25 PST
Created
attachment 446379
[details]
Patch
Chris Dumez
Comment 8
2021-12-08 10:05:05 PST
Comment on
attachment 446379
[details]
Patch Clearing flags on attachment: 446379 Committed
r286661
(?): <
https://commits.webkit.org/r286661
>
Chris Dumez
Comment 9
2021-12-08 10:05:08 PST
All reviewed patches have been landed. Closing bug.
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