Closed Bug 734259 Opened 13 years ago Closed 13 years ago

Clicking a system stylesheet in the style inspector does not open the source

Categories

(DevTools :: Inspector, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 14

People

(Reporter: rcampbell, Assigned: miker)

Details

(Whiteboard: [computedview][ruleview])

Attachments

(1 file, 3 obsolete files)

In the Inspector, click (deselect) Only Show User Styles in the Style Inspector (computed view). Expand a property to reveal a rule with a link to html.css. Click the html.css link. Expected: Should see html.css with the relevant rule displayed either in the source editor or view source. Actual: Source Editor opens with an empty source editor.
Component: Developer Tools → Developer Tools: Inspector
Priority: -- → P2
QA Contact: developer.tools → developer.tools.inspector
Whiteboard: [computedview][ruleview]
Assignee: nobody → mratcliffe
Status: NEW → ASSIGNED
Test case: 1. Inspect the Google logo 2. Open computed view 3. Expand "display" 4. Click on html.css The style editor will open with a list of inline stylesheets. Because html.css is not listed in the style editor we do not open it. Seems like we need to be able to switch the style editor into system mode so that system stylesheets can be loaded.
Attached patch Patch (obsolete) — Splinter Review
We decided to open these links in view source because we don't want users to be editing UA css.
Attachment #604981 - Flags: review?(dcamp)
Comment on attachment 604981 [details] [diff] [review] Patch Missing tests
Attachment #604981 - Flags: review?(dcamp)
Attached patch Tests now included (obsolete) — Splinter Review
Attachment #604981 - Attachment is obsolete: true
Attachment #606294 - Flags: review?(mihai.sucan)
Comment on attachment 606294 [details] [diff] [review] Tests now included Review of attachment 606294 [details] [diff] [review]: ----------------------------------------------------------------- Patch looks good and all tests pass. One general comment: tests use arguments.callee which is deprecated. ::: browser/devtools/highlighter/inspector.jsm @@ +1031,2 @@ > > + // Array.prototype.indexOf always returns -1 here so we loop through Is this comment needed? ::: browser/devtools/styleinspector/test/browser_ruleview_bug_703643_context_menu_copy.js @@ -46,5 @@ > > // Make sure the inspector is open. > ok(InspectorUI.inspecting, "Inspector is highlighting"); > ok(!InspectorUI.treePanel.isOpen(), "Inspector Tree Panel is not open"); > - ok(!InspectorUI.isSidebarOpen, "Inspector Sidebar is not open"); Why is this here?
Attachment #606294 - Flags: review?(mihai.sucan) → review+
Attached patch Fixed orange (obsolete) — Splinter Review
Attachment #606294 - Attachment is obsolete: true
Whiteboard: [computedview][ruleview] → [computedview][ruleview][land-in-fx-team]
Mike: the latest patch you submitted here is empty.
Attached patch patch includedSplinter Review
Patch now included.
Attachment #607231 - Attachment is obsolete: true
Whiteboard: [computedview][ruleview][land-in-fx-team] → [computedview][ruleview][fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [computedview][ruleview][fixed-in-fx-team] → [computedview][ruleview]
Target Milestone: --- → Firefox 14
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: