Closed
Bug 740603
Opened 13 years ago
Closed 13 years ago
"Copy Rule" in the rule view includes expanded shorthand properties
Categories
(DevTools :: Inspector, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 14
People
(Reporter: dcamp, Assigned: miker)
References
Details
(Whiteboard: [ruleview][fixed-in-fx-team])
Attachments
(1 file, 4 obsolete files)
25.08 KB,
patch
|
Details | Diff | Splinter Review |
* Point the inspector at an element with a shorthand property
* Use "Copy Rule" from the context menu
* Paste the resulting text
All the expanded shorthand properties are included.
Assignee | ||
Comment 1•13 years ago
|
||
Seems like this must be an OSX issue only as it works fine on Linux & Windows.
I have made the copy rule & declaration methods a little more robust so it should hopefully fix the problem.
Attachment #610843 -
Flags: review?(dcamp)
Assignee | ||
Updated•13 years ago
|
Status: NEW → ASSIGNED
Reporter | ||
Comment 2•13 years ago
|
||
Comment on attachment 610843 [details] [diff] [review]
Made "Copy Rule" more robust
Review of attachment 610843 [details] [diff] [review]:
-----------------------------------------------------------------
Needs tests for the things that were failing.
Attachment #610843 -
Flags: review?(dcamp) → review-
Assignee | ||
Comment 3•13 years ago
|
||
Dave, I am asking for feedback from you as discussed.
See:
https://tbpl.mozilla.org/?tree=Try&rev=1c403040a6db
There are timing issues relating to the rule view ... it seems like the DOM is not fully initialized at the time the rule view sends out it's ready notifier.
Attachment #610843 -
Attachment is obsolete: true
Attachment #612371 -
Flags: feedback?(dcamp)
Reporter | ||
Comment 4•13 years ago
|
||
Comment on attachment 612371 [details] [diff] [review]
Added test
OK, between synthesizing the mouse click on the property name and working on its editor, you need to wait for the editor to be created. The browser_ruleview_ui.js test has a method that will wait for an editor to be created, you should be able to use something like that.
Assignee | ||
Comment 5•13 years ago
|
||
This was held up by a hard to find leak (fixed by somebody else somewhere).
Patch works fine locally but need to wait for try:
https://tbpl.mozilla.org/?tree=Try&rev=0f011861fc57
Attachment #612371 -
Attachment is obsolete: true
Attachment #612371 -
Flags: feedback?(dcamp)
Attachment #613558 -
Flags: review?(dcamp)
Assignee | ||
Comment 6•13 years ago
|
||
dcamp: Seems like my latest patch is already attached
Assignee | ||
Comment 7•13 years ago
|
||
Fixed oranges and timing issues. If we can get this into Aurora then we would not need to disable the copy menus.
Attachment #613558 -
Attachment is obsolete: true
Attachment #613558 -
Flags: review?(dcamp)
Attachment #614163 -
Flags: review?(dcamp)
Assignee | ||
Updated•13 years ago
|
Whiteboard: [ruleview][has-patch]
Reporter | ||
Comment 8•13 years ago
|
||
Comment on attachment 614163 [details] [diff] [review]
Now green on try
Review of attachment 614163 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/devtools/styleinspector/CssRuleView.jsm
@@ +1021,1 @@
>
Is it ever possible for node to be null here? If so, please protect against that.
Attachment #614163 -
Flags: review?(dcamp) → review+
Assignee | ||
Comment 9•13 years ago
|
||
(In reply to Dave Camp (:dcamp) from comment #8)
> Comment on attachment 614163 [details] [diff] [review]
> Now green on try
>
> Review of attachment 614163 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: browser/devtools/styleinspector/CssRuleView.jsm
> @@ +1021,1 @@
> >
>
> Is it ever possible for node to be null here? If so, please protect against
> that.
Attachment #614163 -
Attachment is obsolete: true
Assignee | ||
Updated•13 years ago
|
Whiteboard: [ruleview][has-patch] → [ruleview][land-in-fx-team]
Comment 10•13 years ago
|
||
Whiteboard: [ruleview][land-in-fx-team] → [ruleview][fixed-in-fx-team]
Comment 11•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
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
•