Closed
Bug 986481
Opened 11 years ago
Closed 11 years ago
Expose Promise.jsm as a devtools loader global
Categories
(DevTools :: Debugger, defect)
DevTools
Debugger
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 31
People
(Reporter: Paolo, Assigned: Paolo)
References
Details
Attachments
(1 file)
4.93 KB,
patch
|
dcamp
:
review+
|
Details | Diff | Splinter Review |
Panos, this is your patch for landing. It looks good to me and has green try:
https://tbpl.mozilla.org/?tree=Try&rev=8d13ed4c0b4d
Attachment #8394779 -
Flags: review?(past)
Comment 1•11 years ago
|
||
Comment on attachment 8394779 [details] [diff] [review]
The patch
Review of attachment 8394779 [details] [diff] [review]:
-----------------------------------------------------------------
I feel weird reviewing my own patch, let's get someone else to do it :-)
Attachment #8394779 -
Flags: review?(past) → review?(rcampbell)
Comment 2•11 years ago
|
||
Comment on attachment 8394779 [details] [diff] [review]
The patch
I am going to defer this (heh. "defer", get it?) to dcamp since it's a loader thing.
Attachment #8394779 -
Flags: review?(rcampbell) → review?(dcamp)
Comment 3•11 years ago
|
||
Can you explain why we're doing this?
Comment 4•11 years ago
|
||
My original suggestion is in bug 943517 comment 8, but to recap, we want to convert from (sync) sdk promises to (async) Promise.jsm promises, which among other benefits provides a better path forward to ES6 promises. At the same time, we want to make the debugger server not use the mozIJSSubScriptLoader in order to be used for debugging workers (bug 859372). Also, we need to load the promise library in the server's global in order to avoid breaking stepping with chrome debugging.
Pre-loading the promise library in the loader's globals achieves those goals and simplifies upgrading to native promises to a 2-line patch.
Updated•11 years ago
|
Attachment #8394779 -
Flags: review?(dcamp) → review+
Assignee | ||
Comment 5•11 years ago
|
||
Comment 6•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Firefox 31
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•