Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e89594617c3cd8ca921e2164dd0d64a0498567b6
https://github.com/WebKit/WebKit/commit/e89594617c3cd8ca921e2164dd0d64a0498567b6
Author: Qianlang Chen <[email protected]>
Date: 2025-04-16 (Wed, 16 Apr 2025)
Changed paths:
M Source/WebKit/UIProcess/Inspector/mac/WKInspectorViewController.mm
Log Message:
-----------
Web Inspector: Docked inspector should adjust according to the page's
obscured content insets
https://bugs.webkit.org/show_bug.cgi?id=291241
rdar://144717466
Reviewed by Patrick Angle.
To respond to the host browser setting the _obscuredContentInsets of
an inspected WKWebView, the specialized WKInspectorViewController needs
to update the _obscuredContentInsets for the attached inspector, using
safeAreaInsets automatically calculated natively.
Using safeAreaInsets as the benchmark is sufficient because it takes
into account any custom insets applied on the inspector view's parent.
* Source/WebKit/UIProcess/Inspector/mac/WKInspectorViewController.mm:
(-[WKInspectorViewController webView]):
(-[WKInspectorViewController observeValueForKeyPath:ofObject:change:context:]):
(-[WKInspectorViewController webViewWebContentProcessDidTerminate:]):
Canonical link: https://commits.webkit.org/293770@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes