mirror of
https://github.com/openclaw/openclaw.git
synced 2026-09-29 17:19:00 +08:00
WKWebView starts a Screen Time configuration observer once it is in a window with an HTTP(S) main frame. ScreenTime delivers configuration via KVO on WebKit's private update queue while -[WKWebView dealloc] removes the observer on the main thread, so tearing a web view down during its initial reply throws NSInternalInconsistencyException and aborts the Swift Testing process (macos-swift run 36289828982, job 108537817128). Link a test-only OpenClawWebKitTestSupport target into OpenClawIPCTests that replaces WebKit's Screen Time install hook with a recorder, add a regression test for windowed HTTP web views, and document the guard. Product builds keep Screen Time.