Ehsan Akhgari
33bb32f549
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Boris Zbarsky
54c64f20a9
Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
...
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp. The
rest of this diff was generated by running the following commands:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Daniel Holbert
2c24121797
Bug 1142841: Convert all nsRefPtr<nsIRunnable> to nsCOMPtr<nsIRunnable>. r=ehsan
...
This patch was generated by a script. Here's the source of the script for
future reference:
find . \( -iname "*.cpp" -o -iname "*.h" \) | \
xargs -n 1 sed -i "s/nsRefPtr<nsIRunnable>/nsCOMPtr<nsIRunnable>/g"
2015-03-17 09:29:17 -07:00
Wes Kocher
0c00a67ca9
Merge inbound to m-c a=merge CLOSED TREE
2015-03-09 18:27:28 -07:00
Boris Zbarsky
7c3e3e3096
Bug 1140573 part 3. Drop the parent argument from js::NewFunctionWithReserved. r=waldo
2015-03-09 12:50:07 -04:00
Paolo Amadini
ed01852c99
Bug 1140472 - Set an async stack when invoking promise handlers. r=bz
2015-03-09 12:36:29 +00:00
Boris Zbarsky
f22da41d9f
Bug 1122238 part 3. Drop all the DOMException-cloning and sanitization gunk we added in bug 1107592 and bug 1107953 and bug 1117242 . r=bholley
2015-03-06 01:08:06 -05:00
Olli Pettay
640dc295d0
Bug 1136357 - Make Promise skippable, r=mccr8
2015-02-25 00:24:45 +02:00
Boris Zbarsky
20da84c169
Bug 1107953 part 5. Add tests for promise rejections with content-side DOMExceptions, and fix the promise code so those tests actually pass. r=bholley
2015-01-15 17:39:02 -05:00
Boris Zbarsky
d54f0f8070
Bug 1107953 part 3. Make Promise pass in their object compartment when calling their various callbacks. r=bholley
...
--HG--
rename : dom/bindings/test/test_exception_options_from_jsimplemented.html => dom/bindings/test/test_promise_rejections_from_jsimplemented.html
2015-01-15 17:39:02 -05:00
Boris Zbarsky
946534a82f
Bug 1120235. Various promise resolve/reject functions should actually return undefined instead of ending up accidentally returning their callee. r=nsm
2015-01-12 22:35:33 -05:00
Edgar Chen
8954e6d67e
Bug 1112471 - Part 2: DOM Changes for getting icc service state API. r=smaug
2014-12-26 10:11:20 +08:00
Ehsan Akhgari
b470964f2c
Bug 1118612 - Mark virtual overridden functions as MOZ_OVERRIDE in dom/promise; r=baku
2015-01-07 11:51:28 -05:00
Andrea Marchesini
dddffc895b
Bug 1057994 - DataStore should not dispatch runnables in a worker when it is shutting down, r=bent
...
--HG--
rename : dom/datastore/tests/file_basic_worker.html => dom/datastore/tests/file_worker_close.html
rename : dom/datastore/tests/test_basic_worker.html => dom/datastore/tests/test_worker_close.html
2014-12-17 14:49:36 +00:00
Dan Gohman
0a0a779f10
Bug 1054671 - Constify static callback arrays r=ehsan
2014-12-16 16:30:39 -08:00
Nigel Babu
cd37b395c6
Backed out changeset 6a3a0e3bfaf6 (bug 1054671) for B2G emulator build bustage on CLOSED TREE
2014-12-16 11:24:15 +05:30
Dan Gohman
447fe285f2
Bug 1054671 - Constify static callback arrays r=ehsan
2014-12-15 20:53:58 -08:00
Boris Zbarsky
ae7e51d646
Bug 1087851 part 1. Rename WrapNewBindingObject to GetOrCreateDOMReflector to make it clearer what it does. r=peterv for the idea; patch itself is just search-and-replace
2014-11-26 14:25:20 -05:00
Carsten "Tomcat" Book
e4867cec4d
Backed out changeset 73c4111cab17 (bug 1083361) for bustage
2014-11-20 09:51:03 +01:00
David Rajchenbach-Teller
f76c419f9e
Bug 1083361 - Exposing a PromiseDebugging API to monitor uncaught DOM Promise. r=bz
2014-11-19 14:31:06 +01:00
Nick Fitzgerald
80eb9d983f
Bug 1084065 - Part 2: Make DOM Promise call the JS::dbg::onPromiseSettled hook; r=bz
2014-11-17 10:44:00 +01:00
Nick Fitzgerald
105ae727f7
Bug 1083210 - Part 2: Make DOM Promise call the JS::dbg::onNewPromise hook. r=bz
2014-11-17 10:42:00 +01:00
Paolo Amadini
f119700716
Bug 1095443 - Ensure processNextEvent never blocks after processing a Promise microtask. r=bz
2014-11-11 13:47:28 +00:00
Jan-Ivar Bruaroey
e8b5e63e1b
Bug 1033885 - add mediaDevices.getUserMedia with promises. r=bz, r=jesup
2014-09-20 02:20:41 -04:00
Paolo Amadini
ec9499744d
Bug 1013625 - Process Promise resolution runnables outside of main event queue. r=bz,khuey
2014-10-28 12:08:19 +00:00
Paolo Amadini
f22950ba82
Bug 1083783 - Move Promise.cpp to a model where settlement immediately queues the invocation of "then" callbacks. r=bz
2014-10-28 12:08:19 +00:00
Boris Zbarsky
1f2f961464
Bug 1084030. Store the promise creation and settlement timestamps and expose that information via PromiseDebugging. r=nsm
2014-10-20 13:02:21 -04:00
Boris Zbarsky
32e9856cfd
Bug 1083950. Add a way to get the promises that depend on a given promise via PromiseDebugging. r=nsm
2014-10-19 22:27:36 -04:00
Boris Zbarsky
075178aa90
Bug 1083851 part 3. Capture stacks at promise fulfillment time. r=nsm
2014-10-19 22:27:12 -04:00
Boris Zbarsky
76f098299b
Bug 1083851 part 2. Capture stacks at promise rejection time. r=nsm
2014-10-19 22:27:12 -04:00
Boris Zbarsky
f59edd37b0
Bug 1083851 part 1. Capture allocation stacks at promise creation time. r=nsm
2014-10-19 22:27:12 -04:00
Peter Van der Beken
9254096129
Bug 1078744 - Replace SetIsDOMBinding with SetIsNonDOMBinding, remove nsWrapperCache::SetIsDOMBinding. r=bz.
...
--HG--
extra : rebase_source : 89c476cd9436530b2df5acc903909e34188417a0
2014-10-07 11:44:49 +02:00
Bobby Holley
b0d5796cba
Bug 1070842 - Remove ambiguous globals from xpc::ErrorReporter and make meanings explicit. r=bz
2014-09-29 15:34:20 +02:00
Bobby Holley
54afe3012b
Bug 1065811 - Expose isCallable()/isConstructor() in JS_PUBLIC_API. r=billm
2014-09-25 13:13:28 +02:00
Bobby Holley
8dae0fc8ce
Bug 1070696 - Rename xpc::GetNativeForGlobal to xpc::NativeGlobal and make it accept non-global JSObjects. r=smaug
...
The method is infallible, and making the callers invoke
js::GetGlobalForObjectCrossCompartment manually is dumb.
2014-09-21 21:31:53 +02:00
Yuan Xulei
2ae87a78b2
Bug 1035060 - Implement AbortablePromise. r=bz
2014-09-12 10:18:49 +08:00
Bobby Holley
35d62e8c00
Bug 1062077 - Introduce xpc::ErrorReport. r=bz
...
I've got it! Let's just wrap the JS thing in an XPCOM thing that duplicates
its fields with a different ownership model! We totally need another one of
those, right? And we could even stick it in XPConnect! </sarcasm>
In seriousness - the code to own, format, and display error reports is
currently spread between the JS engine, JSErrorReporters, an async Runnable
abstraction, and elsewhere. We need to condense it somewhere to start chipping
away at this mess.
2014-09-08 16:30:10 -07:00
Ehsan Akhgari
bc7cc3893c
Bug 1061023 - Fix more bad implicit constructors in DOM; r=baku
...
--HG--
extra : rebase_source : c80c5f9d7ae28286513cdb52ad76b46c240bdd5d
2014-09-01 18:26:43 -04:00
Yuan Xulei
0b76b1d942
Bug 1055925 - Refactor promise to merge main thread and worker thread tasks into a single task. r=nsm
2014-08-19 18:39:56 +08:00
Ehsan Akhgari
38ec6af068
Bug 1045436 - Fix more bad implicit constructors in XPCOM; r=froydnj
2014-07-29 20:43:56 -04: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
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
Benoit Jacob
747dcfc8a0
Bug 1028588 - Fix dangerous public destructors in the rest of dom/ - r=ehsan
2014-06-23 15:56:07 -04: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
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