Merge pull request #1591 from manaflow-ai/task-fix-nightly-build-failure

Fix nightly release browser portal compile
This commit is contained in:
Lawrence Chen 2026-03-17 01:39:31 -07:00 committed by GitHub
commit 1b4fd602d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5172,13 +5172,6 @@ extension BrowserPanel {
return "webFrame=\(Self.debugRectDescription(webFrame)) webBounds=\(Self.debugRectDescription(webView.bounds)) webWin=\(webView.window?.windowNumber ?? -1) super=\(Self.debugObjectToken(container)) superType=\(containerType) superBounds=\(Self.debugRectDescription(containerBounds)) inspectorHApprox=\(String(format: "%.1f", inspectorHeightApprox)) inspectorInsets=\(String(format: "%.1f", inspectorInsets)) inspectorOverflow=\(String(format: "%.1f", inspectorOverflow)) inspectorSubviews=\(inspectorSubviews)"
}
func hideBrowserPortalView(source: String) {
BrowserWindowPortalRegistry.hide(
webView: webView,
source: source
)
}
}
#endif
@ -5270,6 +5263,15 @@ private extension BrowserPanel {
}
}
extension BrowserPanel {
func hideBrowserPortalView(source: String) {
BrowserWindowPortalRegistry.hide(
webView: webView,
source: source
)
}
}
extension WKWebView {
func cmuxInspectorObject() -> NSObject? {
let selector = NSSelectorFromString("_inspector")