When a CSS error in an inline style sheet is clicked in the console, the right stylesheet is not selected in the style editor

NEW
Unassigned

Status

DevTools
Style Editor
P2
normal
4 years ago
a month ago

People

(Reporter: bz, Unassigned)

Tracking

({regression})

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

STEPS TO REPRODUCE:
1)  Open the Web Console.
1)  Enable CSS Warnings in the Web Console.
2)  Load the attached testcase.
3)  Click the "test.html:15" link.

EXPECTED RESULTS:

Style editor opens, shows the relevant stylesheet selected (and ideally the line selected).

ACTUAL RESULTS:

Style editor opens, no sheet is selected.

RELATED ISSUE:

If I select the second sheet in the style editor, go back to the console, and click the "test.html:12" link, I get switched to the style editor, still showing the second sheet as selected, which is extremely unhelpful.
By the way, this seems to work for external stylesheets.  It just fails for inline stylesheets.
Summary: When a CSS error is clicked in the console, the right stylesheet is not selected in the style editor → When a CSS error in an inline style sheet is clicked in the console, the right stylesheet is not selected in the style editor
Note that this is a serious regression over the old "console opens view source" behavior, which selected the right line and everything.
Keywords: regression
As far as I know, this is not a regression, but a limitation since very beginning.
It's a regresion from when clicking the links stopped opening "view source" an started opening the style editor.

For example, Firefox 22 does not have this bug.  It was introduced during the Firefox 23 cycle, after which dealing with CSS errors has been a huge PITA.

Updated

4 years ago
OS: Mac OS X → All
Hardware: x86 → All
Inspector bug triage (filter on CLIMBING SHOES).
Priority: -- → P2

Updated

a month ago
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.