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
Boris Zbarsky
608e75a0b6
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
aaff15aaaa
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
c1ba24a868
Bug 1170760 part 3. Add an @@species getter on Promise. r=peterv
2015-11-25 15:48:08 -05:00
Boris Zbarsky
b4cbee7794
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
1e0e4345bd
Bug 1170760 part 1. Introduce a PromiseCapability struct. r=baku,efaust
2015-11-25 15:48:08 -05:00
Nathan Froyd
01583602a9
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Alpha A.
b44082538c
Bug 1086627 - Rename Promise constructs to more closely match the specification. r=nsm,jst
...
--HG--
extra : commitid : 86J3tVySqhI
extra : rebase_source : cccb777a893cc44c2edece078e5861aa25f3f52b
extra : amend_source : 02c64f4e5ba42d2aa77776826af80927bd231f00
2015-08-06 17:18:30 +02:00