Closed
Bug 1148075
Opened 9 years ago
Closed 9 years ago
dynamically add commands per-component
Categories
(DevTools :: Debugger, defect)
Tracking
(firefox40 fixed)
RESOLVED
FIXED
Firefox 40
Tracking | Status | |
---|---|---|
firefox40 | --- | fixed |
People
(Reporter: jlong, Assigned: jlong)
Details
Attachments
(1 file, 1 obsolete file)
19.22 KB,
patch
|
Details | Diff | Splinter Review |
This is prep work for modularizing the frontend a bit. I want to reduce globals and right now the <command> elements add an event handler as a string in the DOM, which requires global access. Let's allow each component to dynamically add commands.
Assignee | ||
Comment 1•9 years ago
|
||
Can you take a look especially how I added the utils file to jar.mn? I have no experience with that. This worked though.
Attachment #8584043 -
Flags: review?(ejpbruel)
Comment 2•9 years ago
|
||
Hi James, I don't think I'm the best person to review this patch. I have limited experience with XUL, and I have no experience with jar.mn either. I think Victor would be a good candidate to take a look at this. Victor, could you do me a favor and take a look at this patch for me?
Flags: needinfo?(vporof)
Comment 3•9 years ago
|
||
Comment on attachment 8584043 [details] [diff] [review] 1148075.patch Review of attachment 8584043 [details] [diff] [review]: ----------------------------------------------------------------- looks good ::: browser/devtools/debugger/utils.js @@ +1,1 @@ > + License boilerplate. use strict. @@ +14,5 @@ > + Object.keys(commands).forEach(name => { > + let node = document.createElement('command'); > + node.id = name; > + // XXX bug 371900: the command element must have an oncommand > + // attribute as a string set by `setAttribute` for keys to use it ugh
Attachment #8584043 -
Flags: feedback+
Assignee | ||
Comment 4•9 years ago
|
||
rebased and comments addressed
Attachment #8584043 -
Attachment is obsolete: true
Attachment #8584043 -
Flags: review?(ejpbruel)
Assignee | ||
Comment 5•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=c1d0bbddc890
Updated•9 years ago
|
Flags: needinfo?(vporof)
Assignee | ||
Comment 6•9 years ago
|
||
That intermittent is a known failure, and not related to this patch.
Keywords: checkin-needed
Comment 7•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/2c7a6e149631
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Comment 8•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/2c7a6e149631
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 40
Updated•9 years ago
|
Assignee: nobody → jlong
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•