[Webkit-unassigned] [Bug 266721] New: Web Inspector: PrefersColorScheme is not defined on all platforms causing exception

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 20 11:48:08 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=266721

            Bug ID: 266721
           Summary: Web Inspector: PrefersColorScheme is not defined on
                    all platforms causing exception
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Other
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ujwal.koneru at sony.com
                CC: inspector-bugzilla-changes at group.apple.com

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?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20231220/2971b28e/attachment.htm>


More information about the webkit-unassigned mailing list