Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 0ee66ba15e9fcde9b71257527fb002fc15b1ca0e
https://github.com/WebKit/WebKit/commit/0ee66ba15e9fcde9b71257527fb002fc15b1ca0e
Author: Qianlang Chen <[email protected]>
Date: 2026-04-23 (Thu, 23 Apr 2026)
Changed paths:
M Source/WebKit/UIProcess/Inspector/mac/WKInspectorViewController.mm
Log Message:
-----------
Web Inspector: Be sure to unregister KVO for WKInspectorViewController
https://bugs.webkit.org/show_bug.cgi?id=312577
Reviewed by BJ Burg.
In compliance to the documentation in [1], make sure KVO observer is
removed before the object gets deallocated. Previously, removing the
observer in webViewWebContentProcessDidTerminate did not cover the
case where the target process exited gracefully.
- [1]:
https://developer.apple.com/documentation/objectivec/nsobject-swift.class/addobserver(_:forkeypath:options:context:)
* Source/WebKit/UIProcess/Inspector/mac/WKInspectorViewController.mm:
(-[WKInspectorViewController dealloc]):
(-[WKInspectorViewController webViewWebContentProcessDidTerminate:]):
Canonical link: https://commits.webkit.org/311899@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications