[Webkit-unassigned] [Bug 241558] New: REGRESSION (r251194): Web Inspector: Uncaught exception when inspecting color referenced by CSS variable

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 13 10:55:47 PDT 2022


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

            Bug ID: 241558
           Summary: REGRESSION (r251194): Web Inspector: Uncaught
                    exception when inspecting color referenced by CSS
                    variable
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
               URL: file:///Volumes/Data/code/samples/variable-color.html
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: rcaliman at apple.com
                CC: inspector-bugzilla-changes at group.apple.com

Created attachment 460208

  --> https://bugs.webkit.org/attachment.cgi?id=460208&action=review

Test case

Uncaught Exception in Web Inspector.

Test case (save as HTML file):
```
<!DOCTYPE html>
<body style="--color: red">
<h1 style="color: var(--color)">Inspect my color</h1>
</body>
```

Steps to Reproduce:
1. Open the attached test case file
2. Inspect the `<h1>` element's color
3. In the Styles panel, click the swatch next to `var(--color)` to see the resolved color value


Uncaught Exceptions:
-----------------------
 - TypeError: undefined is not an object (evaluating 'this._preventChangingColorFormats') (at InlineSwatch.js:389:127)
    callback @ InlineSwatch.js:389:127
    createCodeMirrorTextMarkers @ CodeMirrorTextMarkers.js:76:25
    createCodeMirrorColorTextMarkers @ CodeMirrorTextMarkers.js:121:39
    _swatchElementClicked @ InlineSwatch.js:394:45
    _swatchElementClicked @ [native code]
-----------------------

Regressed by https://bugs.webkit.org/show_bug.cgi?id=241055

-- 
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/20220613/17e309e2/attachment-0001.htm>


More information about the webkit-unassigned mailing list