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)
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:
- Navigate to about:config
- Set
dom.customHighlightAPI.enabled
totrue
- Open DevTools
- Select 'Inspector' tab
Actual results:
Rules panel is blank
Expected results:
Rules panel is not blank
Assignee | ||
Comment 1•1 year ago
|
||
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);
Comment 2•1 year ago
|
||
Hi Jan, do you have any timeline to flip the preference dom.customHighlightAPI.enabled to true, so that we can prioritize this DevTools issue?
Blocks: css-highlight-api-1
Flags: needinfo?(jjaschke)
Comment 3•1 year ago
|
||
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)
Updated•1 year ago
|
Severity: -- → S3
Priority: -- → P2
Assignee | ||
Comment 4•1 year ago
|
||
This prevent the rule view crashing when dom.customHighlightAPI.enabled
is set
to true.
Updated•1 year ago
|
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0d5a9a3fc271
[devtools] Fix inspector crash on ::highlight. r=devtools-reviewers,jdescottes.
Comment 6•1 year ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox116:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•