Closed
Bug 1152721
Opened 10 years ago
Closed 10 years ago
Move shared helper functions e.g. createChild() into a shared file
Categories
(DevTools :: Inspector, defect)
DevTools
Inspector
Tracking
(firefox43 fixed)
RESOLVED
FIXED
Firefox 43
Tracking | Status | |
---|---|---|
firefox43 | --- | fixed |
People
(Reporter: miker, Assigned: julian.descottes)
Details
Attachments
(1 file, 3 obsolete files)
17.80 KB,
patch
|
julian.descottes
:
review+
|
Details | Diff | Splinter Review |
From a review comment by bgrins:
> ::: browser/devtools/styleinspector/computed-view.js
> @@ +1540,5 @@
> > + * The tag name.
> > + * @param {object} aAttributes
> > + * A set of attributes to set on the node.
> > + */
> > +function createChild(aParent, aTag, aAttributes={}) {
>
> We should export this from a shared module since it's copy/pasted from the
> rule view. Surprisingly, I don't think we have a shared file for this type
> of thing yet. Maybe viewhelpers.jsm, or styleeditor/utils.js. We can do
> that in a follow up though
>
Assignee | ||
Comment 1•10 years ago
|
||
Assigning this to me as follow up to Bug 1164343.
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → julian.descottes
Assignee | ||
Comment 2•10 years ago
|
||
This patch moves helper methods from rule-view and computed-view to a new styleinspector/utils.js
I left some helper methods related to rule-view#getNodeInfo, because they are too specific to rule-view to be shared at the moment.
Also removed the custom setTimeout clearTimeout to rely on timer.jsm instead.
Try push : https://treeherder.mozilla.org/#/jobs?repo=try&revision=55810880ce57
Attachment #8639183 -
Flags: review?(mratcliffe)
Reporter | ||
Updated•10 years ago
|
Attachment #8639183 -
Flags: review?(mratcliffe) → review+
Assignee | ||
Comment 3•10 years ago
|
||
Thanks for the review !
Will rebase, do a new try push, and add checkin-needed if everything is fine.
Assignee | ||
Comment 4•10 years ago
|
||
New patch after rebase. No changes otherwise.
New try push : https://treeherder.mozilla.org/#/jobs?repo=try&revision=72b8f28f54f8
Attachment #8639183 -
Attachment is obsolete: true
Attachment #8643224 -
Flags: review+
Keywords: checkin-needed
Comment 7•10 years ago
|
||
sorry had to backout this change for causing xpcshell bustage https://treeherder.mozilla.org/logviewer.html#?job_id=4072767&repo=fx-team
Flags: needinfo?(julian.descottes)
Assignee | ||
Comment 9•10 years ago
|
||
Sorry, my mistake.
I thought unit tests would be executed by my try push, but looks like I got the syntax wrong.
Flags: needinfo?(julian.descottes)
Assignee | ||
Comment 10•10 years ago
|
||
New push try, this time including xpcshell tests : https://treeherder.mozilla.org/#/jobs?repo=try&revision=f378fe7ac5cb
@Mike : since the previous patch was busted I prefer to get your approval on this one before going forward.d
Attachment #8643224 -
Attachment is obsolete: true
Attachment #8643916 -
Flags: review?(mratcliffe)
Reporter | ||
Updated•10 years ago
|
Attachment #8643916 -
Flags: review?(mratcliffe) → review+
Assignee | ||
Comment 11•10 years ago
|
||
Same as v3, just rebased.
Try push (incl. xpcshell tests) : https://treeherder.mozilla.org/#/jobs?repo=try&revision=d7d8d520cd86
Will add checkin-needed if try is green.
Attachment #8643916 -
Attachment is obsolete: true
Attachment #8647194 -
Flags: review+
Assignee | ||
Comment 12•10 years ago
|
||
Except for unrelated issues, try is green.
Keywords: checkin-needed
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox43:
--- → fixed
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 43
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•