Commit Graph

98 Commits

Author SHA1 Message Date
Boris Zbarsky
fed157b076 Bug 991080. Add an overload of Promise::ArgumentToJSValue that lets callers pass in an nsTArray to MaybeResolve() a promise with a JS array. r=khuey 2014-04-10 00:58:43 -04:00
Boris Zbarsky
a9fc4aaa02 Bug 993889 part 1. Remove "scope" argument from nsContentUtils::WrapNative. r=bholley 2014-04-10 00:58:41 -04:00
Andrea Marchesini
b89f8fc1bb Bug 974893 - Remove EnterCompartment and keep the global with the value in Promise, r=bz 2014-04-09 09:30:24 +01:00
Ed Morley
7162b65fa4 Backed out changeset 7fa9564a2486 (bug 974893) for build failures 2014-04-09 09:08:39 +01:00
Andrea Marchesini
b27a1641cd Bug 974893 - Remove EnterCompartment and keep the global with the value in Promise, r=bz 2014-04-09 08:32:46 +01:00
Boris Zbarsky
3891aa3158 Bug 991742 part 10. Remove the "aScope" argument from the Promise ArgumentToJSValue() methods. r=bholley 2014-04-08 18:27:19 -04:00
Boris Zbarsky
9462dfc340 Bug 991742 part 9. Remove the "scope" argument of WrapNewBindingObject. r=bholley 2014-04-08 18:27:19 -04:00
Boris Zbarsky
b95c359828 Bug 991742 part 8. Remove the "aScope" argument of WebIDL/nsWrapperCache WrapObject() methods. r=bholley
This patch was mostly generated with the following command:

find . -name "*.h" -o -name "*.cpp" | xargs sed -e '/WrapObject(JSContext/ {; N; s/\(WrapObject(JSContext *\* *a\{0,1\}[Cc]x\),\n\{0,1\} *JS::Handle<JSObject\*> a\{0,1\}[sS]cope/\1/ ; }' -i ""

and then reverting the changes that made to
dom/bindings/BindingUtils.h, since those WrapObject methods are not
the ones we're trying to change here, plus a bunch of manual fixups
for cases that this command did not catch (including all the callsites
of WrapObject()).
2014-04-08 18:27:18 -04:00
Nikhil Marathe
1e885edcd8 Bug 956197 - Tests to check Promises can accept iterators. r=bz 2014-03-28 08:17:53 -07:00
Yuan Xulei
97594abedb Bug 934368 - Extend Promise#MaybeResolve to receive boolean value. r=smaug 2014-02-26 16:18:34 +08:00
Yuan Xulei
22b80430dc Bug 910412 - Implement |getRoot|, |createDirectory| and |get| for Directory. r=dhylands, r=smaug 2014-03-05 11:25:40 +08:00
Nikhil Marathe
fe7ec2e2ac Bug 967005 - Report rejected promises when worker stops running. r=bent 2014-03-12 07:31:03 -07:00
Wes Kocher
b1a06e7bcb Backed out changeset 716ba77a9d0a (bug 967005) for ASAN m-4 failures 2014-03-11 17:23:35 -07:00
Nikhil Marathe
84637aeb6e Bug 967005 - Report rejected promises when worker stops running. r=bent 2014-03-11 16:10:41 -07:00
Ryan VanderMeulen
f3e7f70e31 Backed out 5 changesets (bug 910412) for intermittent crash whack-a-mole.
Backed out changeset e3eb9463b3e1 (bug 910412)
Backed out changeset d5863d302bde (bug 910412)
Backed out changeset 422b66d4b1ca (bug 910412)
Backed out changeset 3431d59d752e (bug 910412)
Backed out changeset b1c0310cdac1 (bug 910412)
2014-03-11 12:17:03 -04:00
Richard Barnes
736b09241a Bug 978435 - Add ArgumentToJSVal overload for typed arrays. r=bz 2014-03-10 08:55:46 -04:00
Yuan Xulei
d688dc7974 Bug 910412 - Implement |getRoot|, |createDirectory| and |get| for Directory. r=dhylands, r=smaug 2014-03-05 11:25:40 +08:00
Kyle Huey
9c46ca15f6 Bug 974120: Add helpers for using Promse::MaybeResolve/MaybeReject from C++. r=bz
Using JSAPI is tedious and error-prone.  It's much better to handle that once in the Promise code and allow callers to pass C++ objects.
2014-02-25 13:34:55 -08:00
Boris Zbarsky
cffedad1d1 Bug 970764. Remove support for non-optional "any" arguments values, since "any" needs to be able to include undefined anyway. Have "any" arguments and dictionary entries default to undefined unless the IDL explicitly says "= null". r=khuey 2014-02-19 10:13:38 -05:00
Nikhil Marathe
784c3ec66d Bug 966348 - Rename Promise.cast to Promise.resolve. r=bz 2014-02-10 09:27:02 -08:00
Nikhil Marathe
fe6cd7fc28 Bug 918806 - Enable DOM Promises. sr=bz 2014-01-30 13:14:00 -08:00
Ryan VanderMeulen
4ffd4d58ec Backed out changesets 6db8b08a3aea and 1d7c2025bb56 (bug 918806) for B2G mochitest failures. 2014-01-30 14:46:36 -05:00
Nikhil Marathe
61dbd07aa3 Bug 918806 - Enable DOM Promises. sr=bz 2014-01-30 09:41:43 -08:00
Nikhil Marathe
9c3cfd1a18 Bug 945766 - DOM Promise should pass Promise/A+ tests. r=bz 2014-01-28 10:14:57 -08:00
Nikhil Marathe
46fc87707d Bug 939332 - Implement Promise.all, Promise.cast, Promise.race. r=bz 2013-11-19 13:53:00 -08:00
Nikhil Marathe
8d0052198d Bug 879245 - Implement thenables for Promises. r=bz 2014-01-23 10:47:29 -08:00
Nikhil Marathe
1476255d12 Bug 959375 - Add Promise Resolve/Reject overloads accepting a window. r=baku 2014-01-13 14:36:03 -08:00
Nikhil Marathe
ee95f9bfe6 Bug 915233 - DOM Promises on Workers. r=baku,bent,smaug,bz sr=sicking 2013-11-24 11:26:07 -08:00
Nikhil Marathe
7ed16b392a Bug 939906 - Make Promise.resolve(), Promise.reject(), Promise.prototype.then() and Promise.prototype.catch() spec compliant. r=baku 2013-11-19 13:29:47 -08:00
Nikhil Marathe
c034e6930c Bug 882076 - C++ callbacks to DOM Promises. r=baku,mccr8 2013-11-19 10:43:51 -08:00
Nikhil Marathe
d0639e1f14 Bug 939909 - Get rid of Optional<> from internal Promise functions. r=bz 2013-11-19 10:39:51 -08:00
Michael Henretty
4b9fd4a73a Bug 899574 - Add public API for resolving promises in C++. r=baku 2013-09-26 11:09:16 -07:00
Reuben Morais
69ab2ad7e9 Backed out 2 changesets (bug 899574) for breaking Gaia tests 2013-10-07 14:41:13 -04:00
Michael Henretty
1ac9d9204b Bug 899574 - Add public API for resolving promises in C++. r=baku 2013-09-26 11:09:16 -07:00
Andrea Marchesini
a03d55dffb Bug 911213 - Implement new promise constructor, r=bz 2013-09-11 18:03:04 +02:00
Nicholas Nethercote
d0f640378a Bug 911020 - Introduce js/TypeDecls.h, which holds very commonly used type declarations from the JS engine. r=luke. 2013-08-27 19:59:14 -07:00
Boris Zbarsky
4ee066317f Bug 903419 part 2. Report unhandled rejections in promises. r=smaug,bholley,luke 2013-08-29 00:30:06 -04:00
Kyle Huey
1223cd0b94 Bug 887533: Remove even more includes from dom/bindings. r=bz 2013-08-22 22:17:11 -07:00
Kyle Huey
1157b590a9 Back out Bug 887533 for test failures. 2013-08-22 23:40:32 -07:00
Kyle Huey
2ed42c4d19 Bug 887533: Remove even more includes from dom/bindings. r=bz 2013-08-22 22:17:11 -07:00
Kyle Huey
279381a195 Bug 903772: Part 3 - Refactor GlobalObject. r=peterv 2013-08-22 22:17:08 -07:00
Boris Zbarsky
0d9dbfadfe Bug 897913 part 3. Enable Promise in chrome and certified apps, even when preffed off. r=bholley, pending review from baku 2013-08-07 17:40:20 -04:00
Andrea Marchesini
65aba6540c Bug 875289 - Remove .done() and allow undefined to be passed to .then() and .catch(), r=mounir, sr=bz 2013-07-16 15:56:24 +02:00
Andrea Marchesini
201cec1916 Bug 884279 - Rename Future to Promise. r=mounir 2013-07-11 16:40:36 -04:00
Ed Morley
f17f7614fd Backed out changeset 96036434bb78 (bug 875289) for mochitest-chrome failures on a CLOSED TREE 2013-06-20 11:20:49 +01:00
Ed Morley
427d04b92b Backed out changeset 80732a2b8422 (bug 875289) 2013-06-20 11:20:01 +01:00
Andrea Marchesini
6fdc945ce4 Bug 875289 - Remove .done() and allow undefined to be passed to .then() and .catch(), r=mounir 2013-06-20 10:49:47 +02:00
Andrea Marchesini
0c131d8498 Bug 875289 - Renaming Future to Promise, r=mounir 2013-06-20 10:49:40 +02:00