Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove runtime check for using extensions when USE(EXTENSIONKIT) is true #24030

Conversation

achristensen07
Copy link
Contributor

@achristensen07 achristensen07 commented Feb 7, 2024

a869bc0

Remove runtime check for using extensions when USE(EXTENSIONKIT) is true
https://bugs.webkit.org/show_bug.cgi?id=268944

Reviewed by Per Arne Vollan.

The runtime check is no longer needed.
This also fixes some issues when you use a WKWebsiteDataStore and the network process
before a WKProcessPool has been allocated.

* Source/WebKit/UIProcess/AuxiliaryProcessProxy.cpp:
* Source/WebKit/UIProcess/AuxiliaryProcessProxy.h:
(WebKit::AuxiliaryProcessProxy::setManageProcessesAsExtensions): Deleted.
(WebKit::AuxiliaryProcessProxy::manageProcessesAsExtensions): Deleted.
* Source/WebKit/UIProcess/Cocoa/AuxiliaryProcessProxyCocoa.mm:
(WebKit::AuxiliaryProcessProxy::platformGetLaunchOptions):
* Source/WebKit/UIProcess/Cocoa/WebPageProxyCocoa.mm:
(WebKit::WebPageProxy::updateMediaCapability):
* Source/WebKit/UIProcess/WebProcessPool.cpp:
* Source/WebKit/UIProcess/ios/WKContentView.mm:
(-[WKContentView _setupVisibilityPropagationForWebProcess]):
(-[WKContentView _setupVisibilityPropagationForGPUProcess]):
(-[WKContentView _createVisibilityPropagationView]):

Canonical link: https://commits.webkit.org/274267@main

2b38528

Misc iOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe 🛠 wincairo
✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug 🧪 wpe-wk2
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 🧪 api-mac ✅ 🧪 api-wpe
🧪 ios-wk2-wpt ✅ 🛠 gtk
✅ 🧪 api-ios 🧪 mac-wk2 🧪 gtk-wk2
🛠 tv 🧪 mac-AS-debug-wk2 ✅ 🧪 api-gtk
✅ 🛠 tv-sim
🛠 watch
✅ 🛠 🧪 unsafe-merge ✅ 🛠 watch-sim

@achristensen07 achristensen07 self-assigned this Feb 7, 2024
@achristensen07 achristensen07 added the WebKit Process Model Bugs related to WebKit's multi-process architecture label Feb 7, 2024
Copy link
Contributor

@pvollan pvollan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! R=me.

@achristensen07 achristensen07 force-pushed the eng/Remove-runtime-check-for-using-extensions-when-USEEXTENSIONKIT-is-true branch 2 times, most recently from a5fc08e to f871acf Compare February 7, 2024 22:22
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Feb 8, 2024
@achristensen07 achristensen07 removed the merging-blocked Applied to prevent a change from being merged label Feb 8, 2024
@achristensen07 achristensen07 force-pushed the eng/Remove-runtime-check-for-using-extensions-when-USEEXTENSIONKIT-is-true branch from f871acf to 2b38528 Compare February 8, 2024 01:34
@achristensen07 achristensen07 added the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Feb 8, 2024
https://bugs.webkit.org/show_bug.cgi?id=268944

Reviewed by Per Arne Vollan.

The runtime check is no longer needed.
This also fixes some issues when you use a WKWebsiteDataStore and the network process
before a WKProcessPool has been allocated.

* Source/WebKit/UIProcess/AuxiliaryProcessProxy.cpp:
* Source/WebKit/UIProcess/AuxiliaryProcessProxy.h:
(WebKit::AuxiliaryProcessProxy::setManageProcessesAsExtensions): Deleted.
(WebKit::AuxiliaryProcessProxy::manageProcessesAsExtensions): Deleted.
* Source/WebKit/UIProcess/Cocoa/AuxiliaryProcessProxyCocoa.mm:
(WebKit::AuxiliaryProcessProxy::platformGetLaunchOptions):
* Source/WebKit/UIProcess/Cocoa/WebPageProxyCocoa.mm:
(WebKit::WebPageProxy::updateMediaCapability):
* Source/WebKit/UIProcess/WebProcessPool.cpp:
* Source/WebKit/UIProcess/ios/WKContentView.mm:
(-[WKContentView _setupVisibilityPropagationForWebProcess]):
(-[WKContentView _setupVisibilityPropagationForGPUProcess]):
(-[WKContentView _createVisibilityPropagationView]):

Canonical link: https://commits.webkit.org/274267@main
@webkit-commit-queue webkit-commit-queue force-pushed the eng/Remove-runtime-check-for-using-extensions-when-USEEXTENSIONKIT-is-true branch from 2b38528 to a869bc0 Compare February 8, 2024 05:33
@webkit-commit-queue
Copy link
Collaborator

Committed 274267@main (a869bc0): https://commits.webkit.org/274267@main

Reviewed commits have been landed. Closing PR #24030 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit a869bc0 into WebKit:main Feb 8, 2024
@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WebKit Process Model Bugs related to WebKit's multi-process architecture
Projects
None yet
5 participants