Mike Hommey
d10b15b035
Bug 1041860 - Avoid setting FINAL_LIBRARY to libraries that further use a FINAL_LIBRARY. r=mshal
2014-07-23 08:37:51 +09:00
Nikhil Marathe
86f5bb969b
Bug 1023547 - Fix intermittent dom/workers/test/test_promise.html failure. r=bz
...
--HG--
extra : transplant_source : %F5%A9%DER%BA%11%E3%2C%E3R%C8%40%F3%5E%D5%C3%A6%FE%9D%90
2014-07-18 18:13:47 -07:00
Ryan VanderMeulen
379f8a7ad4
Backed out changeset 38bfa2af2bd8 (bug 1023547) for making test_promise.html perma-fail.
2014-07-20 15:39:04 -04:00
Nikhil Marathe
c0b86de32d
Bug 1023547 - Fix intermittent dom/workers/test/test_promise.html failure. r=bz
2014-07-18 18:13:47 -07:00
Boris Zbarsky
48011830e3
Bug 966452 part 2. Report all unhandled Promise rejections. r=nsm,bholley
2014-07-04 01:24:59 -04:00
Boris Zbarsky
c03ab46f93
Bug 1040263. Eagerly create and preserve Promise reflectors so we always have them available during unlink. r=nsm,bholley.
2014-07-18 21:31:11 -04:00
Benoit Girard
e7aea75462
Bug 1037691 - Fix instances where refcounted classes expose a public destructor. r=ehsan,bent,mayhemer,jrmuizel
2014-07-15 11:37:45 -04:00
Benoit Jacob
57ed0c585c
Bug 1035394 - Fix dangerous public destructors in dom - r=ehsan
2014-07-08 17:23:17 -04:00
Carsten "Tomcat" Book
39f737bb90
Backed out changeset 42f348168125 (bug 966452)
2014-07-04 08:23:38 +02:00
Boris Zbarsky
4a3080b3df
Bug 966452 part 2. Report all unhandled Promise rejections. r=nsm
2014-07-04 01:24:59 -04:00
Nikhil Marathe
4d7bfd252f
Bug 984048 - Patch 4 - Handle parse and uncaught errors. r=khuey
...
--HG--
extra : rebase_source : 463146233c874c2f2c63c018f2a43a66ca9ea49a
2014-07-02 17:48:35 -07:00
Boris Zbarsky
e2f0608365
Bug 966471. Add some facilities for examining the state of a promise via a PromiseDebugging utility namespace. r=nsm,peterv
2014-07-02 00:19:48 -04:00
Wes Kocher
bbc09af3cc
Backed out 3 changesets (bug 984048) for breaking hazard builds.
...
Backed out changeset 2d0c34b7045f (bug 984048)
Backed out changeset c18211a2afa1 (bug 984048)
Backed out changeset 30fa36882d57 (bug 984048)
2014-07-01 20:29:08 -07:00
Nikhil Marathe
3d69f76ee1
Bug 965644 - Fix intermittent oranges on promise tests. r=bz
2014-07-01 17:33:00 -07:00
Nikhil Marathe
81a3fad979
Bug 984048 - Promise::MaybeReject ErrorEvent overload no longer needed. Fix compile error. r=bustage
...
--HG--
extra : amend_source : 5fcbc1c3912503e98f36fce514ddc2433da31a3e
2014-07-01 17:07:47 -07:00
Nikhil Marathe
8ece823137
Bug 984048 - Patch 4 - Handle parse and uncaught errors. r=khuey
2014-07-01 16:43:13 -07:00
Ryan VanderMeulen
6b74ec8899
Backed out changesets bacfdc83424a and 7d12b5d7446f (bug 984048) for crashes.
2014-06-30 17:22:47 -04:00
Nikhil Marathe
40400978a6
Bug 984048 - Patch 4 - Handle parse and uncaught errors. r=khuey
...
--HG--
extra : rebase_source : 9cc36dea950be96fba079877c2d67b76f8383635
2014-06-30 13:31:02 -07:00
Benoit Jacob
747dcfc8a0
Bug 1028588 - Fix dangerous public destructors in the rest of dom/ - r=ehsan
2014-06-23 15:56:07 -04:00
Kyle Huey
b29ba7e116
Bug 1023033: Remove unnecessary MOZ_COUNT_CTOR/DTOR from promise code. r=mccr8
2014-06-17 09:39:16 -07:00
Ben Kelly
fa96ef9593
Bug 1025973 - Part 2: Do not pass JSContext to static webidl methods in non-worker case. r=bz
2014-06-16 12:52:00 -04:00
Ben Kelly
d96ec8b401
Bug 1025973 - Part 1: Rename GlobalObject::GetContext() to Context(). r=bz
2014-06-16 14:08:00 -04:00
Boris Zbarsky
2bb59ed300
Bug 1009675 part 2. Return WebIDL 'any' values as handles. r=peterv
2014-06-11 16:26:52 -04:00
Nikhil Marathe
abe25b169a
Bug 1020226 - Fix unhandled Promise rejection handling in workers. r=khuey
...
* * *
Bug 1020226 - Test case to crash browser when using Promises on workers. r=khuey
2014-06-05 12:21:56 -07:00
Boris Zbarsky
ce7efbba1f
Bug 1016560. Remove the footgun of rejecting promises with arbitrary objects. r=khuey
2014-06-03 11:38:38 -04:00
Ryan VanderMeulen
a1fd06248a
Backed out changesets 6d1c36585219 and bd403a727849 (bug 1016560) for mochitest-other failures.
...
CLOSED TREE
2014-06-03 13:48:49 -04:00
Boris Zbarsky
59db282a5f
Bug 1016560. Remove the footgun of rejecting promises with arbitrary objects. r=khuey
2014-06-03 11:38:38 -04:00
Nikhil Marathe
25ee8c2808
Bug 1008467 - Callbacks to then() resolve Promise asynchronously. r=bz
2014-05-20 14:55:36 -07:00
Nikhil Marathe
7f1cb23bae
Bug 1009569 - Promise then() must be called on a clean stack. r=bz
2014-05-20 14:21:13 -07:00
Nick Lebedev
b7223435b4
Bug 998002 - Rename nsContentUtils::Get{Subject,Object}Principal to nsContentUtils::{Subject,Object}Principal. r=bholley
2014-05-13 11:58:00 +02:00
Gene Lian
84c4e2d3fc
Bug 949325 - C++ wrapper to support DataStore API on the worker (part 2-1, provide a proxy to resolve/reject Promise on workers). r=baku,nsm,khuey
2014-02-24 21:56:54 +08:00
Jon Coppeard
bed7fc43d9
Bug 959787 - Handlify remaining JS APIs r=terrence r=bz r=bholley
2014-04-30 10:10:33 +01:00
Andrea Marchesini
e6576fb574
Bug 995163 - wrap the Promise value in NativePromiseCallback, r=bz
2014-04-29 22:12:14 +01:00
Birunthan Mohanathas
4de1915f30
Bug 900903 - Part 2: Change uses of numbered macros in nsCycleCollectionParticipant.h to the variadic variants. r=smaug
2014-04-25 12:49:00 -04:00
Boris Zbarsky
04d5a7c98d
Bug 996831. Add a ToJSValue overload for nsresult, to allow rejecting promises from C++ more easily. r=bholley
2014-04-16 15:13:41 -04:00
Ryan VanderMeulen
1829e78b29
Backed out 3 changesets (bug 996474, bug 996831) for B2G bustage on a CLOSED TREE.
...
Backed out changeset 8f98a4c2257f (bug 996831)
Backed out changeset 7acce569bd84 (bug 996831)
Backed out changeset 1845b09c7578 (bug 996474)
2014-04-16 19:31:41 -04:00
Boris Zbarsky
e152157843
Bug 996831. Add a ToJSValue overload for nsresult, to allow rejecting promises from C++ more easily. r=bholley
2014-04-16 15:13:41 -04:00
Jon Coppeard
2a5c843ea4
Bug 993413 - Remove use of JS_Add/Remove*Root in favour of JS::PersistentRooted where possible r=terrence r=bz r=bholley
2014-04-16 09:47:53 +01:00
Boris Zbarsky
e862c92db8
Bug 994453 part 1. Factor out the to-JS conversions from Promise.h into mozilla::dom::ToJSValue methods. r=bholley
...
Apart from moving the methods, I made the following changes:
1) Renamed them to ToJSValue.
2) Inlined the boolean overload.
3) Added overloads that take integer types.
4) Changed the order of the aCx and aArgument arguments so aCx comes first.
5) Renamed "abv" to "obj" in the typed array overload.
2014-04-10 14:57:07 -04:00
Boris Zbarsky
96db362740
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
3738611b99
Bug 993889 part 1. Remove "scope" argument from nsContentUtils::WrapNative. r=bholley
2014-04-10 00:58:41 -04:00
Andrea Marchesini
f8f47ff494
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
423901664f
Backed out changeset 7fa9564a2486 (bug 974893) for build failures
2014-04-09 09:08:39 +01:00
Andrea Marchesini
47d3ae2f7e
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
dfd0a0d909
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
a0c3167371
Bug 991742 part 9. Remove the "scope" argument of WrapNewBindingObject. r=bholley
2014-04-08 18:27:19 -04:00
Boris Zbarsky
35fca5eeeb
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
Boris Zbarsky
56f44fdf10
Bug 991742 part 6. Remove the "aScope" argument of binding Wrap() methods. r=bholley
...
This patch was mostly generated with this command:
find . -name "*.h" -o -name "*.cpp" | xargs sed -e 's/Binding::Wrap(aCx, aScope, this/Binding::Wrap(aCx, this/' -e 's/Binding_workers::Wrap(aCx, aScope, this/Binding_workers::Wrap(aCx, this/' -e 's/Binding::Wrap(cx, scope, this/Binding::Wrap(cx, this/' -i ""
plus a few manual fixes to dom/bindings/Codegen.py, js/xpconnect/src/event_impl_gen.py, and a few C++ files that were not caught in the search-and-replace above.
2014-04-08 18:27:17 -04:00
Boris Zbarsky
bed9b485be
Bug 991753. Make sure we're in the right compartment before we try wrapping our Promise in Promise::GetOrCreateWrapper. r=bholley
2014-04-03 23:32:11 -04:00
Boris Zbarsky
0087f2d16b
Bug 990242. Remove some dead Promise code. r=nsm
2014-04-01 01:58:28 -04:00