Closed Bug 986481 Opened 11 years ago Closed 11 years ago

Expose Promise.jsm as a devtools loader global

Categories

(DevTools :: Debugger, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 31

People

(Reporter: Paolo, Assigned: Paolo)

References

Details

Attachments

(1 file)

Attached patch The patchSplinter 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 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 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)
Can you explain why we're doing this?
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.
Attachment #8394779 - Flags: review?(dcamp) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Firefox 31
Blocks: 996671
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: