Closed Bug 1265840 Opened 9 years ago Closed 9 years ago

remove Services.tm uses

Categories

(DevTools :: Framework, enhancement, P1)

enhancement

Tracking

(firefox49 fixed)

RESOLVED FIXED
Firefox 49
Iteration:
49.1 - May 9
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.
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.
One of the uses of Services.tm would probably better be replaced by setImmediate.
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: nobody → ttromey
Status: NEW → ASSIGNED
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+
Attachment #8743402 - Attachment is obsolete: true
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 49
Iteration: --- → 49.1 - May 9
Flags: qe-verify-
Priority: -- → P1
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: