Closed Bug 1840776 Opened 1 year ago Closed 1 year ago

CSS Rules Inspector doesn't work when CSS Custom Highlight API is enabled

Categories

(DevTools :: Inspector: Rules, defect, P2)

Firefox 116
x86_64
Linux
defect

Tracking

(firefox116 fixed)

RESOLVED FIXED
116 Branch
Tracking Status
firefox116 --- fixed

People

(Reporter: gregp, Assigned: nchevobbe)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Steps to reproduce:

  1. Navigate to about:config
  2. Set dom.customHighlightAPI.enabled to true
  3. Open DevTools
  4. Select 'Inspector' tab

Actual results:
Rules panel is blank

Expected results:
Rules panel is not blank

Here's the error we can see in such case:

Unhandled pseudo-element ::highlight
  resource://devtools/server/actors/page-style.js", 716

which comes from https://searchfox.org/mozilla-central/rev/c0adc2160976e2c118e2e5709d08aac071fddce9/devtools/server/actors/page-style.js#683-685,715-716

// eslint-disable-next-line complexity
_pseudoIsRelevant(node, pseudo) {
  switch (pseudo) {
...
    default:
      throw Error("Unhandled pseudo-element " + pseudo);

Hi Jan, do you have any timeline to flip the preference dom.customHighlightAPI.enabled to true, so that we can prioritize this DevTools issue?

Flags: needinfo?(jjaschke)

Hi, I am planning to flip the pref as soon as the code freeze for 116 is over. So likely next week :)

Flags: needinfo?(jjaschke)
Severity: -- → S3
Priority: -- → P2

This prevent the rule view crashing when dom.customHighlightAPI.enabled is set
to true.

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Depends on: 1840818
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0d5a9a3fc271 [devtools] Fix inspector crash on ::highlight. r=devtools-reviewers,jdescottes.
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: