Jean-Yves Avenard
0ef21031c3
Bug 1466385. Use forwarding reference in MaybeResolve. r=bz
...
This allows move semantics when resolving Promises
MozReview-Commit-ID: EYFd3Abr7Ec
2018-06-02 13:26:06 +02:00
Jan de Mooij
60ed528f87
Bug 1466121 part 1 - Rename JSCompartment to JS::Compartment. r=luke
2018-06-07 16:44:40 +02:00
Ciure Andrei
93ef1d47ba
Backed out 2 changesets (bug 1458043) for dom/presentation/tests/mochitest/test_presentation_1ua_connection_wentaway_inproc.html failures a=backout
...
Backed out changeset 0b5c103fcb70 (bug 1458043)
Backed out changeset 51cdd0595094 (bug 1458043)
2018-05-17 00:54:04 +03:00
Nika Layzell
0a1beed56d
Bug 1458043 - Part 2: Use native refcounting for Promises, r=bz
2018-05-14 17:55:58 -04:00
Boris Zbarsky
a9b5143d1a
Bug 1453339. Make it harder to mess up Promise::All. r=peterv
...
MozReview-Commit-ID: UO4wssYHj7
2018-04-13 19:31:42 -04:00
Ryan VanderMeulen
ae2dda6bb2
Backed out changeset 91406356569c (bug 1453339) for landing without review.
2018-04-14 10:25:15 -04:00
Boris Zbarsky
f0d51e4a5a
Bug 1453339 - Make it harder to mess up Promise::All. r=peterv
...
MozReview-Commit-ID: UO4wssYHj7
2018-04-12 17:03:49 -04:00
Olli Pettay
8d2a7b0ad2
Bug 1193394 - Part 1: Microtasks and promises scheduling. r=bevis
2017-11-17 11:01:27 +08:00
Csoregi Natalia
a7fb1721fe
Backed out 7 changesets (bug 1193394) for browser-chrome failures on browser_ext_popup_background.js. CLOSED TREE
...
Backed out changeset 9683f24ff8ec (bug 1193394)
Backed out changeset 0e7140a7c841 (bug 1193394)
Backed out changeset a0e26f6b2784 (bug 1193394)
Backed out changeset 29e1fceaf48d (bug 1193394)
Backed out changeset b8632bbbd273 (bug 1193394)
Backed out changeset a54ef2d8f896 (bug 1193394)
Backed out changeset 55c94c05c57f (bug 1193394)
2018-03-01 16:29:02 +02:00
Olli Pettay
6a1afb366a
Bug 1193394 - Part 1: Microtasks and promises scheduling. r=bevis
2017-11-17 11:01:27 +08:00
Andrea Marchesini
792189dd57
Bug 1120178 - Migrate DOMError to DOMExtension in FileReader, IndexedDB, DOMRequest and so on, r=smaug
2017-08-06 20:47:00 +03:00
Alexandre Poirot
b5cffeea3f
Bug 1392540 - Keep running debugger Promise while debugging workers. r=baku
...
MozReview-Commit-ID: JsA0Y943egB
2017-08-10 13:27:07 +02:00
Boris Zbarsky
e8c83da9a8
Bug 1323721 part 6. Remove the now-unused Promise::WrapObject. r=till
2016-12-19 15:38:43 -08:00
Till Schneidereit
cf48c96ede
Bug 1322920 - Remove DOM Promise implementation. r=bz
...
MozReview-Commit-ID: 1zzd0x2LNNb
2016-12-14 17:11:48 +01:00
Jon Coppeard
863d796e4b
Bug 1297558 - Remove explicit calls to Expose*ToActiveJS r=mccr8
2016-10-18 17:58:19 +01:00
Kaku Kuo
5a5c47592b
Bug 1300071 - Create an API to access DOM Promise's state. r=bz
...
MozReview-Commit-ID: LI2Dafkzq5x
2016-09-07 10:51:41 +08:00
Kaku Kuo
849d8e2e5f
Bug 1293878 part 2 - remove not used Promise::MaybeRejectWithNull() utility; r=smaug
...
MozReview-Commit-ID: 2vlqZRyjc9i
2016-08-16 11:03:41 +08:00
Kaku Kuo
beb3e65fa4
Bug 1292091 - Part 1 - add Promise::MaybeResolveWithUndefined() utility method; r=bz
...
MozReview-Commit-ID: 41737NOQoH4
2016-08-10 10:07:42 +08:00
Boris Zbarsky
6fbff4d420
Bug 1279313 part 2. Use an AutoEntryScript when resolving or rejecting a Promise from C++, in case we are resolving with an object and plan to call the "then" getter.
2016-07-07 20:08:25 -04:00
Andrea Marchesini
796bda032a
Bug 1269154 - Get rid of WorkerFeature: WorkerHolder, r=khuey
2016-06-23 10:53:14 +02:00
Carsten "Tomcat" Book
ef49710e52
Backed out changeset 1c5d78c7ba43 (bug 1269154) for bustage on a CLOSED TREE
2016-06-23 10:13:54 +02:00
Andrea Marchesini
274f4e927f
Bug 1269154 - Get rid of WorkerFeature: WorkerHolder, r=khuey
2016-06-22 17:24:35 +02:00
Kaku Kuo
a455dadfc1
Bug 1276272 - part 1 - add Promise::MaybeRejectWithVode() utility method; r=ehsan
...
MozReview-Commit-ID: 4bBGsUNKbQS
2016-06-09 20:26:47 +01:00
Till Schneidereit
4f5be3e505
Bug 911216 - Part 24: Use promise rejection tracking to report unhandled rejections to the console. r=bz,Paolo
2016-03-22 16:22:24 +01:00
Kyle Huey
d791fedcc4
Bug 1259290: Part 5 - Remove the cx from WorkerFeature::Notify. r=bz
2016-03-28 10:28:14 -07:00
Eddy Bruel
e5db48a881
Bug 1229769 - We should be able to use DOM promises in the worker debugger;r=khuey
2016-03-24 16:12:00 +01:00
Boris Zbarsky
5462df3dc8
Bug 1257725 part 3. Get rid of ThreadsafeAutoJSContext usage in Promise code. r=bholley
2016-03-23 11:02:57 -04:00
Boris Zbarsky
cebe133434
Bug 1243001 part 7. Stop wrappercaching dom::Promise when SPIDERMONKEY_PROMISE is defined. r=peterv
...
nsWrapperCache expects the object it stores to have an ObjectMoved op that will
notify the wrapper cache when the object is moved. SpiderMonkey promises don't
have a way to do this.
The XPCConvert changes are needed to allow code that passes around Promise
objects as nsISupports to continue working instead of ending up with
double-wrapped nsISupports (XPCWrappedNative for an nsISupports XPCWrappedJS)
around the SpiderMonkey Promise.
2016-02-09 17:40:31 -05:00
Boris Zbarsky
2afd6d72bd
Bug 1243001 part 5. Get rid of most of the dom::Promise methods when SPIDERMONKEY_PROMISE is defined, and reimplement the rest in terms of SpiderMonkey Promise. r=peterv
...
This is the bulk of the new dom::Promise implementation. It's using the APIs
that bug 911216 part 1 adds.
2016-02-09 17:40:31 -05:00
Kaku Kuo
80cfd6c3dd
Bug 1239300 - reject promise with null while creating imagebitmap from empty blob; r=smaug
2016-01-19 14:35:01 +08:00
Boris Zbarsky
11d511c281
Bug 1170760 part 13. Add subclassing support to Promise::Then/Catch. r=baku,efaust
2015-11-25 15:48:10 -05:00
Boris Zbarsky
f934fdaecd
Bug 1170760 part 11. Add subclassing support to Promise::Reject. r=baku,efaust
2015-11-25 15:48:09 -05:00
Boris Zbarsky
1892742f92
Bug 1170760 part 10. Add subclassing support to Promise::Resolve. r=baku,efaust
2015-11-25 15:48:09 -05:00
Boris Zbarsky
3ef179d066
Bug 1170760 part 8. Add subclassing support to Promise::All. r=baku,efaust
2015-11-25 15:48:09 -05:00
Boris Zbarsky
a449dc40c8
Bug 1170760 part 7. Add subclassing support to Promise::Race. r=baku,efaust
...
Note that the web platform tests don't actually have quite the behavior they're
expected to per the spec yet. They will get adjusted later on as we add
subclassing support to Promise.resolve and Promise.prototype.then.
2015-11-25 15:48:09 -05:00
Boris Zbarsky
517e193f4d
Bug 1170760 part 6. Fix GetDependentPromise to deal with a situation when someone called then() and passed it the resolve/reject functions that come from a promise's constructor. r=baku
2015-11-25 15:48:09 -05:00
Boris Zbarsky
16e874db50
Bug 1170760 part 5. Implement NewPromiseCapability which can either return a PromiseCapability as in the spec, or one that has a native promise and maybe resolve/reject functions if the consumer asked for them. r=baku,efaust
2015-11-25 15:48:09 -05:00
Boris Zbarsky
2c6bcdabcd
Bug 1170760 part 3. Add an @@species getter on Promise. r=peterv
2015-11-25 15:48:08 -05:00
Boris Zbarsky
21b332f380
Bug 1170760 part 2. Pass in the 'this' value to Promise static methods. r=peterv
2015-11-25 15:48:08 -05:00
Boris Zbarsky
15a903dbde
Bug 1170760 part 1. Introduce a PromiseCapability struct. r=baku,efaust
2015-11-25 15:48:08 -05:00
Phil Ringnalda
b118ae5885
Back out 13 changesets (bug 1170760) for Gu bustage in homescreen/test/unit/apps_test.js
...
CLOSED TREE
Backed out changeset 5d84599a8846 (bug 1170760)
Backed out changeset 6104fe33d5f5 (bug 1170760)
Backed out changeset 1dfb229da01d (bug 1170760)
Backed out changeset f380faddfdd8 (bug 1170760)
Backed out changeset 541831dc6b57 (bug 1170760)
Backed out changeset 6a5b7dfab882 (bug 1170760)
Backed out changeset ee514a256922 (bug 1170760)
Backed out changeset 3c2c1acc34ee (bug 1170760)
Backed out changeset dc2a7f5dc5d6 (bug 1170760)
Backed out changeset b312a08fbab5 (bug 1170760)
Backed out changeset cb6aba9b8497 (bug 1170760)
Backed out changeset 39e4f5b1ba40 (bug 1170760)
Backed out changeset 7d79cce3630a (bug 1170760)
2015-11-25 21:02:55 -08:00
Boris Zbarsky
fe3478879a
Bug 1170760 part 13. Add subclassing support to Promise::Then/Catch. r=baku,efaust
2015-11-25 15:48:10 -05:00
Boris Zbarsky
5686ea73b1
Bug 1170760 part 11. Add subclassing support to Promise::Reject. r=baku,efaust
2015-11-25 15:48:09 -05:00
Boris Zbarsky
ca22a3dc8b
Bug 1170760 part 10. Add subclassing support to Promise::Resolve. r=baku,efaust
2015-11-25 15:48:09 -05:00
Boris Zbarsky
10f77c8085
Bug 1170760 part 8. Add subclassing support to Promise::All. r=baku,efaust
2015-11-25 15:48:09 -05:00
Boris Zbarsky
6a14e38fa5
Bug 1170760 part 7. Add subclassing support to Promise::Race. r=baku,efaust
...
Note that the web platform tests don't actually have quite the behavior they're
expected to per the spec yet. They will get adjusted later on as we add
subclassing support to Promise.resolve and Promise.prototype.then.
2015-11-25 15:48:09 -05:00
Boris Zbarsky
10891cd81c
Bug 1170760 part 6. Fix GetDependentPromise to deal with a situation when someone called then() and passed it the resolve/reject functions that come from a promise's constructor. r=baku
2015-11-25 15:48:09 -05:00
Boris Zbarsky
951b4dd374
Bug 1170760 part 5. Implement NewPromiseCapability which can either return a PromiseCapability as in the spec, or one that has a native promise and maybe resolve/reject functions if the consumer asked for them. r=baku,efaust
2015-11-25 15:48:09 -05:00
Boris Zbarsky
d9372d0025
Bug 1170760 part 3. Add an @@species getter on Promise. r=peterv
2015-11-25 15:48:08 -05:00
Boris Zbarsky
7f7aed6a5a
Bug 1170760 part 2. Pass in the 'this' value to Promise static methods. r=peterv
2015-11-25 15:48:08 -05:00