https://github.com/WebKit/WebKit/blob/c186aa353a2e83ef72ed2609fab10a7be617c8ea/Source/WebInspectorUI/UserInterface/Controllers/CSSManager.js#L669 PrefersColorScheme does not seem to exist on all platforms in InspectorBackend.Enum.Page.UserPreferenceName. An exception is triggered. This was caught by accident as one of the event listeners gets exception and exits causing buggy behavior. I am wondering if a change to something like is correct on this context. this._overriddenUserPreferences.delete(InspectorBackend.Enum.Page.UserPreferenceName?.PrefersColorScheme); Hoping Devin has a chance to offer feedback on this?
<rdar://problem/120218897>