Open Bug 1075627 Opened 10 years ago Updated 2 years ago

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

Categories

(DevTools :: Style Editor, defect, P2)

defect

Tracking

(Not tracked)

People

(Reporter: bzbarsky, Unassigned)

Details

(Keywords: regression)

Attachments

(1 file)

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.
Attached file Testcase
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.
OS: Mac OS X → All
Hardware: x86 → All
Inspector bug triage (filter on CLIMBING SHOES).
Priority: -- → P2
Product: Firefox → DevTools
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: