-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-add access to WKBrowsingContextController on iOS with linked-on-or…
…-after check https://bugs.webkit.org/show_bug.cgi?id=274417 rdar://128283322 Reviewed by Brady Eidson. WKBrowsingContextController is SPI that does not exist in public headers, but at least one app is doing some tricky ObjC runtime things to access and use it. This PR puts it back but with a linked-on-or-after check removing access so when the app updates it will no longer be able to access the SPI. The original motivation for disconnecting WKBrowsingContextController was to remove use of ObjCObjectGraph, which was used to communicate with the injected bundle in some early prototypes of multi-process WebKit. I verified ObjCObjectGraph was not used, which makes sense because there is no injected bundle to communicate with. To make this re-adding of WKBrowsingContextController access not hold up the removal of ObjCObjectGraph, I also removed the use of ObjCObjectGraph in WKBrowsingContextController. * Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.h: * Source/WebKit/UIProcess/API/Cocoa/WKBrowsingContextController.mm: (-[WKBrowsingContextController loadRequest:userData:]): (-[WKBrowsingContextController loadFileURL:restrictToFilesWithin:userData:]): (-[WKBrowsingContextController loadHTMLString:baseURL:userData:]): (-[WKBrowsingContextController loadData:MIMEType:textEncodingName:baseURL:userData:]): * Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm: (-[WKWebView browsingContextController]): * Source/WebKit/UIProcess/ios/WKContentView.h: * Source/WebKit/UIProcess/ios/WKContentView.mm: (-[WKContentView browsingContextController]): Canonical link: https://commits.webkit.org/279022@main
- Loading branch information
1 parent
b0efdb1
commit 4112a1e
Showing
5 changed files
with
35 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters