Merge pull request #1591 from manaflow-ai/task-fix-nightly-build-failure
Fix nightly release browser portal compile
This commit is contained in:
commit
1b4fd602d8
1 changed files with 9 additions and 7 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue