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)
DevTools
Inspector
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 14
People
(Reporter: rcampbell, Assigned: miker)
Details
(Whiteboard: [computedview][ruleview])
Attachments
(1 file, 3 obsolete files)
18.81 KB,
patch
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Updated•13 years ago
|
Component: Developer Tools → Developer Tools: Inspector
Priority: -- → P2
QA Contact: developer.tools → developer.tools.inspector
Whiteboard: [computedview][ruleview]
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → mratcliffe
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•13 years ago
|
||
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.
Assignee | ||
Comment 2•13 years ago
|
||
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)
Assignee | ||
Comment 3•13 years ago
|
||
Comment on attachment 604981 [details] [diff] [review]
Patch
Missing tests
Attachment #604981 -
Flags: review?(dcamp)
Assignee | ||
Comment 4•13 years ago
|
||
Attachment #604981 -
Attachment is obsolete: true
Attachment #606294 -
Flags: review?(mihai.sucan)
Comment 5•13 years ago
|
||
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+
Assignee | ||
Comment 6•13 years ago
|
||
Attachment #606294 -
Attachment is obsolete: true
Assignee | ||
Updated•13 years ago
|
Whiteboard: [computedview][ruleview] → [computedview][ruleview][land-in-fx-team]
Comment 7•13 years ago
|
||
Mike: the latest patch you submitted here is empty.
Assignee | ||
Comment 8•13 years ago
|
||
Patch now included.
Attachment #607231 -
Attachment is obsolete: true
Comment 9•13 years ago
|
||
Whiteboard: [computedview][ruleview][land-in-fx-team] → [computedview][ruleview][fixed-in-fx-team]
Comment 10•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [computedview][ruleview][fixed-in-fx-team] → [computedview][ruleview]
Target Milestone: --- → Firefox 14
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•