Closed
Bug 1265840
Opened 9 years ago
Closed 9 years ago
remove Services.tm uses
Categories
(DevTools :: Framework, enhancement, P1)
DevTools
Framework
Tracking
(firefox49 fixed)
Tracking | Status | |
---|---|---|
firefox49 | --- | fixed |
People
(Reporter: tromey, Assigned: tromey)
References
Details
(Whiteboard: [devtools-html])
Attachments
(1 file, 1 obsolete file)
Remove Services.tm uses for devtools de-chrome-ification project.
See also bug 1265530.
The uses in the inspector seem to be just for setImmediate-like purposes.
There is DevToolsUtils.executeSoon, which it might make sense to change direct usages of Services.tm into. DevToolsUtils.executeSoon does currently use Services.tm (outside of workers), but then you'd at least remove redundant code paths and have only one utility function to think about.
Assignee | ||
Comment 3•9 years ago
|
||
Yeah, that would be an improvement.
Maybe DevToolsUtils could be split up a bit too. Also I was thinking maybe the loader could
define "setTimeout" and "setImmediate" just like it does for "console", to let us remove explicit
uses of Timer.jsm. Though that's probably going to be a different bug.
Assignee | ||
Comment 4•9 years ago
|
||
One of the uses of Services.tm would probably better be replaced by setImmediate.
Assignee | ||
Comment 5•9 years ago
|
||
MozReview-Commit-ID: DQoXLeXKUn3
This fixes the uses coming from the inspector.
There are some in devtools/shared, but I'm postponing those.
There are some in devtools/server, but we can ignore those.
And finally there are two in devtools/client/debugger, but I assume
that's being handled by debugger.html.
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → ttromey
Status: NEW → ASSIGNED
Assignee | ||
Comment 6•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/48749/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/48749/
Attachment #8744976 -
Flags: review?(pbrosset)
Comment 7•9 years ago
|
||
Comment on attachment 8744976 [details]
MozReview Request: Bug 1265840 - remove uses of Services.tm from inspector; r?pbro
https://reviewboard.mozilla.org/r/48749/#review45589
Looking good, thanks!
Attachment #8744976 -
Flags: review?(pbrosset) → review+
Assignee | ||
Comment 8•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Attachment #8743402 -
Attachment is obsolete: true
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Keywords: checkin-needed
Comment 10•9 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 49
Updated•8 years ago
|
Iteration: --- → 49.1 - May 9
Flags: qe-verify-
Updated•8 years ago
|
Priority: -- → P1
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•