Ehsan Akhgari
19e88f0bf4
Bug 1491403 - Part 3: Propagate the user input event handling state to the promise resolve handlers in case the promise creator requests it r=smaug,arai,baku
...
Depends on D7004
Differential Revision: https://phabricator.services.mozilla.com/D7005
--HG--
extra : moz-landing-system : lando
2018-10-09 21:42:22 +00:00
Kris Maglione
8c0ed09430
Bug 1486512: Fix compiling Promise-inl.h on MSVC. r=froydnj
...
For reasions which are unclear, MSVC does not recognize the declaration and
definition of ThenWithCycleCollectedArts as matching in their previous form.
Changing both to use the same template `using` declaration for the entire
return type fixes this.
MSVC also has problems with the previous use of std::forward, which is fixed
by explicitly coercing smart pointers to their equivalent pointer types, and
moving any other type.
Differential Revision: https://phabricator.services.mozilla.com/D4397
--HG--
extra : rebase_source : 483fc7c33a0b10227b11862d176299813466ac95
2018-08-27 13:10:23 -07:00
Kris Maglione
acf635a29b
Bug 1484373: Part 2c - Add Promise::Then handler which accepts a lambda. r=smaug
...
This makes it easier to add promise handlers from C++ in a manner similar to
JavaScript.
Differential Revision: https://phabricator.services.mozilla.com/D3692
--HG--
extra : rebase_source : efa6735da4b22677b684ae790aede6aac6bb1bad
2018-08-18 09:43:22 -07:00
Alex Gaynor
8f9e8a51b2
Bug 1446509 - added final versions of macro for declaring AddRef and Decref; r=froydnj
...
Also make use of them in a few places.
Differential Revision: https://phabricator.services.mozilla.com/D2678
--HG--
extra : moz-landing-system : lando
2018-08-07 18:25:49 +00:00
Jean-Yves Avenard
c25586298b
Bug 1466385. Use forwarding reference in MaybeResolve. r=bz
...
This allows move semantics when resolving Promises
MozReview-Commit-ID: EYFd3Abr7Ec
--HG--
extra : rebase_source : e4553f3a5a9298d98ca454d98ca4158097b46efd
2018-06-02 13:26:06 +02:00
Jan de Mooij
f7fb3be6ec
Bug 1466121 part 1 - Rename JSCompartment to JS::Compartment. r=luke
...
--HG--
extra : rebase_source : cd7140ecda54f0caa02a96f562167b3c9a107450
2018-06-07 16:44:40 +02:00
Ciure Andrei
eab785689c
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
f3af8d0b90
Bug 1458043 - Part 2: Use native refcounting for Promises, r=bz
2018-05-14 17:55:58 -04:00
Boris Zbarsky
ecac16fefa
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
effc958e89
Backed out changeset 91406356569c (bug 1453339) for landing without review.
2018-04-14 10:25:15 -04:00
Boris Zbarsky
a0ee72689e
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
2439836b37
Bug 1193394 - Part 1: Microtasks and promises scheduling. r=bevis
2017-11-17 11:01:27 +08:00
Csoregi Natalia
1fd0486e23
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
b7726493fb
Bug 1193394 - Part 1: Microtasks and promises scheduling. r=bevis
2017-11-17 11:01:27 +08:00
Andrea Marchesini
baa04d619a
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
8558f8dcb0
Bug 1392540 - Keep running debugger Promise while debugging workers. r=baku
...
MozReview-Commit-ID: JsA0Y943egB
--HG--
extra : rebase_source : 1087aa8a1b56330bdb1b5ed32ebeeb3b2bb1defb
2017-08-10 13:27:07 +02:00
Boris Zbarsky
d858d9085c
Bug 1323721 part 6. Remove the now-unused Promise::WrapObject. r=till
2016-12-19 15:38:43 -08:00
Till Schneidereit
95b8398292
Bug 1322920 - Remove DOM Promise implementation. r=bz
...
MozReview-Commit-ID: 1zzd0x2LNNb
2016-12-14 17:11:48 +01:00
Jon Coppeard
556585c65f
Bug 1297558 - Remove explicit calls to Expose*ToActiveJS r=mccr8
2016-10-18 17:58:19 +01:00
Kaku Kuo
d619d6d908
Bug 1300071 - Create an API to access DOM Promise's state. r=bz
...
MozReview-Commit-ID: LI2Dafkzq5x
--HG--
extra : transplant_source : %DA%0D%EC%0B%8A%AD%80A%CC%17%D2%E6%9F%90%A2%9E%92%1E%26%1A
2016-09-07 10:51:41 +08:00
Kaku Kuo
4f8950408b
Bug 1293878 part 2 - remove not used Promise::MaybeRejectWithNull() utility; r=smaug
...
MozReview-Commit-ID: 2vlqZRyjc9i
--HG--
extra : rebase_source : fd7dbb36243ba3eb27fbac999962e5988d671173
2016-08-16 11:03:41 +08:00
Kaku Kuo
55ce6396ad
Bug 1292091 - Part 1 - add Promise::MaybeResolveWithUndefined() utility method; r=bz
...
MozReview-Commit-ID: 41737NOQoH4
--HG--
extra : transplant_source : %9D%D6%FBW%0F-%E1%3C%BE%9F%2C%7B%27%A6%D8g%27%EA%28%F2
2016-08-10 10:07:42 +08:00
Boris Zbarsky
bcb0a973fb
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
aac2306f2c
Bug 1269154 - Get rid of WorkerFeature: WorkerHolder, r=khuey
...
--HG--
rename : dom/cache/Feature.cpp => dom/cache/CacheWorkerHolder.cpp
rename : dom/cache/Feature.h => dom/cache/CacheWorkerHolder.h
rename : dom/workers/WorkerFeature.h => dom/workers/WorkerHolder.h
2016-06-23 10:53:14 +02:00
Carsten "Tomcat" Book
47aeb86e2c
Backed out changeset 1c5d78c7ba43 (bug 1269154) for bustage on a CLOSED TREE
...
--HG--
rename : dom/cache/CacheWorkerHolder.cpp => dom/cache/Feature.cpp
rename : dom/cache/CacheWorkerHolder.h => dom/cache/Feature.h
rename : dom/workers/WorkerHolder.h => dom/workers/WorkerFeature.h
extra : rebase_source : 49f9e9ce0500ac441fe97878cf9308804926544f
2016-06-23 10:13:54 +02:00
Andrea Marchesini
45087a7970
Bug 1269154 - Get rid of WorkerFeature: WorkerHolder, r=khuey
...
--HG--
rename : dom/cache/Feature.cpp => dom/cache/CacheWorkerHolder.cpp
rename : dom/cache/Feature.h => dom/cache/CacheWorkerHolder.h
rename : dom/workers/WorkerFeature.h => dom/workers/WorkerHolder.h
2016-06-22 17:24:35 +02:00
Kaku Kuo
487b3fb191
Bug 1276272 - part 1 - add Promise::MaybeRejectWithVode() utility method; r=ehsan
...
MozReview-Commit-ID: 4bBGsUNKbQS
--HG--
extra : rebase_source : 471c57479c41a0626a05df9aee5cb7027e352904
2016-06-09 20:26:47 +01:00
Till Schneidereit
b0d2250794
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
fe5f7b4105
Bug 1259290: Part 5 - Remove the cx from WorkerFeature::Notify. r=bz
2016-03-28 10:28:14 -07:00
Eddy Bruel
3e2cb55980
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
7d81d282f7
Bug 1257725 part 3. Get rid of ThreadsafeAutoJSContext usage in Promise code. r=bholley
2016-03-23 11:02:57 -04:00
Boris Zbarsky
24566ec012
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
3366af6c39
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
e3bc6c71ea
Bug 1239300 - reject promise with null while creating imagebitmap from empty blob; r=smaug
2016-01-19 14:35:01 +08:00
Boris Zbarsky
4cb14db1a1
Bug 1170760 part 13. Add subclassing support to Promise::Then/Catch. r=baku,efaust
2015-11-25 15:48:10 -05:00
Boris Zbarsky
5d774c82cc
Bug 1170760 part 11. Add subclassing support to Promise::Reject. r=baku,efaust
2015-11-25 15:48:09 -05:00
Boris Zbarsky
0baeed7ed3
Bug 1170760 part 10. Add subclassing support to Promise::Resolve. r=baku,efaust
2015-11-25 15:48:09 -05:00
Boris Zbarsky
53b93863f6
Bug 1170760 part 8. Add subclassing support to Promise::All. r=baku,efaust
2015-11-25 15:48:09 -05:00
Boris Zbarsky
7c7786c7ac
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
2296e841e7
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
7e919bdf2d
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
7229385d25
Bug 1170760 part 3. Add an @@species getter on Promise. r=peterv
2015-11-25 15:48:08 -05:00
Boris Zbarsky
64186b5b76
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
ee1e77dfe3
Bug 1170760 part 1. Introduce a PromiseCapability struct. r=baku,efaust
2015-11-25 15:48:08 -05:00
Phil Ringnalda
53745073f0
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
d71fb767c8
Bug 1170760 part 13. Add subclassing support to Promise::Then/Catch. r=baku,efaust
2015-11-25 15:48:10 -05:00
Boris Zbarsky
0bbce93c83
Bug 1170760 part 11. Add subclassing support to Promise::Reject. r=baku,efaust
2015-11-25 15:48:09 -05:00
Boris Zbarsky
93faa5b1b0
Bug 1170760 part 10. Add subclassing support to Promise::Resolve. r=baku,efaust
2015-11-25 15:48:09 -05:00
Boris Zbarsky
66b2d1a604
Bug 1170760 part 8. Add subclassing support to Promise::All. r=baku,efaust
2015-11-25 15:48:09 -05:00
Boris Zbarsky
df222dfc09
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