Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert [255512@main] Support loading Web Extension URLs and load the …
…background page or service worker. https://bugs.webkit.org/show_bug.cgi?id=246409 rdar://101174536 Reverting commit due to causing bot opensource API test to crash on macOS and iOS queues. Unreviewed revert. * Source/WebCore/en.lproj/Localizable.strings: * Source/WebKit/Shared/WebPageCreationParameters.cpp: (WebKit::WebPageCreationParameters::encode const): (WebKit::WebPageCreationParameters::decode): * Source/WebKit/Shared/WebPageCreationParameters.h: * Source/WebKit/UIProcess/API/APIPageConfiguration.cpp: (API::PageConfiguration::copy const): (API::PageConfiguration::webExtensionController): Deleted. (API::PageConfiguration::setWebExtensionController): Deleted. * Source/WebKit/UIProcess/API/APIPageConfiguration.h: * Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _setupPageConfiguration:]): (-[WKWebView urlSchemeHandlerForURLScheme:]): * Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfiguration.mm: (-[WKWebViewConfiguration encodeWithCoder:]): (-[WKWebViewConfiguration initWithCoder:]): (-[WKWebViewConfiguration copyWithZone:]): (-[WKWebViewConfiguration urlSchemeHandlerForURLScheme:]): (-[WKWebViewConfiguration _webExtensionController]): Deleted. (-[WKWebViewConfiguration _setWebExtensionController:]): Deleted. * Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h: * Source/WebKit/UIProcess/API/Cocoa/_WKWebExtensionContext.h: (NS_ERROR_ENUM): * Source/WebKit/UIProcess/API/Cocoa/_WKWebExtensionContext.mm: (-[_WKWebExtensionContext setBaseURL:]): * Source/WebKit/UIProcess/API/Cocoa/_WKWebExtensionController.mm: (-[_WKWebExtensionController extensionContextForExtension:]): * Source/WebKit/UIProcess/Cocoa/WebURLSchemeHandlerCocoa.h: (): Deleted. * Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionCocoa.mm: (WebKit::WebExtension::manifest): (WebKit::WebExtension::resourceDataForPath): (WebKit::WebExtension::createError): (WebKit::WebExtension::recordError): (WebKit::WebExtension::errors): (WebKit::WebExtension::hasInjectedContentForURL): (WebKit::WebExtension::allRequestedMatchPatterns): (WebKit::WebExtension::isAccessibleResourcePath): Deleted. (WebKit::WebExtension::removeError): Deleted. (WebKit::WebExtension::backgroundContentPath): Deleted. * Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionContextCocoa.mm: (WebKit::WebExtensionContext::WebExtensionContext): (WebKit::WebExtensionContext::createError): (WebKit::WebExtensionContext::load): (WebKit::WebExtensionContext::unload): (WebKit::WebExtensionContext::setBaseURL): (WebKit::WebExtensionContext::postAsyncNotification): (-[_WKWebExtensionContextDelegate initWithWebExtensionContext:]): Deleted. (-[_WKWebExtensionContextDelegate webView:decidePolicyForNavigationAction:decisionHandler:]): Deleted. (-[_WKWebExtensionContextDelegate webView:didFinishNavigation:]): Deleted. (-[_WKWebExtensionContextDelegate webView:didFailNavigation:withError:]): Deleted. (-[_WKWebExtensionContextDelegate webViewWebContentProcessDidTerminate:]): Deleted. (WebKit::toAPI): Deleted. (WebKit::WebExtensionContext::webViewConfiguration): Deleted. (WebKit::WebExtensionContext::backgroundContentURL): Deleted. (WebKit::WebExtensionContext::loadBackgroundWebViewDuringLoad): Deleted. (WebKit::WebExtensionContext::loadBackgroundWebView): Deleted. (WebKit::WebExtensionContext::unloadBackgroundWebView): Deleted. (WebKit::WebExtensionContext::performTasksAfterBackgroundContentLoads): Deleted. (WebKit::WebExtensionContext::decidePolicyForNavigationAction): Deleted. (WebKit::WebExtensionContext::didFinishNavigation): Deleted. (WebKit::WebExtensionContext::didFailNavigation): Deleted. (WebKit::WebExtensionContext::webViewWebContentProcessDidTerminate): Deleted. * Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionControllerCocoa.mm: (WebKit::WebExtensionController::load): (WebKit::WebExtensionController::unload): (WebKit::WebExtensionController::extensionContext const): (WebKit::WebExtensionController::addPage): Deleted. (WebKit::WebExtensionController::removePage): Deleted. * Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionURLSchemeHandlerCocoa.mm: Removed. * Source/WebKit/UIProcess/Extensions/WebExtension.h: * Source/WebKit/UIProcess/Extensions/WebExtensionContext.h: * Source/WebKit/UIProcess/Extensions/WebExtensionController.h: (WebKit::WebExtensionController::wrapper const): Deleted. * Source/WebKit/UIProcess/Extensions/WebExtensionURLSchemeHandler.h: Removed. * Source/WebKit/UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::WebPageProxy): (WebKit::m_fullscreenVideoTextRecognitionTimer): (WebKit::WebPageProxy::close): (WebKit::WebPageProxy::creationParameters): * Source/WebKit/UIProcess/WebPageProxy.h: * Source/WebKit/UIProcess/WebURLSchemeHandler.h: (WebKit::WebURLSchemeHandler::isAPIHandler): Deleted. * Source/WebKit/WebKit.xcodeproj/project.pbxproj: * Source/WebKit/WebProcess/WebPage/WebPage.cpp: * Source/WebKit/WebProcess/WebPage/WebPage.h: * Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebExtensionController.mm: Canonical link: https://commits.webkit.org/255535@main
- Loading branch information
Showing
27 changed files
with
54 additions
and
866 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
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
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
Oops, something went wrong.