Make KVO work for WKWebpagePreferences._captivePortalModeEnabled so that the client can observe when the system setting changes.
Created attachment 446237 [details] Patch
<rdar://problem/86182490>
Created attachment 446253 [details] Patch
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>
(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.
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.
Created attachment 446379 [details] Patch
Comment on attachment 446379 [details] Patch Clearing flags on attachment: 446379 Committed r286661 (?): <https://commits.webkit.org/r286661>
All reviewed patches have been landed. Closing bug.