Boris Zbarsky
afdc22e267
Bug 1180770
part 1. Remove the unused ThrowNotEnoughArgsError. r=peterv
2015-07-09 22:51:28 -04:00
Terrence Cole
620b712967
Bug 1178581 - Interning does not and should not imply infinite lifetime; r=sfink
...
--HG--
extra : rebase_source : f6fb6b881bffe5af0dfde6a45e9e0c29932c8885
2015-06-30 07:58:31 -07:00
Kyle Machulis
c035543458
Bug 1123516 - Implement maplike/setlike in WebIDL Codegen; r=bz
2015-06-29 15:38:53 -07:00
Boris Zbarsky
fefbd0cfd7
Bug 1174954 part 3. Remove ReportJSExceptionFromJSImplementation, since it no longer does anything interesting. r=bholley
2015-06-16 16:44:11 -04:00
Boris Zbarsky
d8e0256e6d
Bug 1174954 part 2. Remove the special-casing of DOMError in JS-implemented webidl code. r=bholley
2015-06-16 16:44:11 -04:00
Boris Zbarsky
90031d3619
Bug 1173593. Make it possible to throw TypeError (or, in fact, any other Error from the content compartment) from js-implemented webidl. r=bholley
2015-06-15 20:09:36 -04:00
Terrence Cole
5dd32db8cf
Bug 1169086 - Use virtual dispatch to implement callback tracer; r=jonco, r=mccr8
...
--HG--
extra : rebase_source : 8da1af998621319f7a0112f1870080dd8835063e
2015-05-28 16:35:08 -07:00
Jason Orendorff
112cb52d91
Bug 1140482 - Add JSPROP_RESOLVING. Give NativeDefineProperty standard behavior in cases where a non-resolving define needs to trigger a resolve hook. r=Waldo.
...
--HG--
extra : rebase_source : c63bb83179ec98e9f93ebb86cb488d65f980a07e
2015-05-01 14:03:17 -05:00
Terrence Cole
c01ef51c2d
Bug 1167453 - Rename JSGCTraceKind and make it a C++11 enum class; r=jonco
...
--HG--
extra : rebase_source : 7dbeee0826fa20477ed227c9d336fdfe6de6ffd2
2015-05-22 10:40:24 -07:00
Terrence Cole
161a4c26ba
Bug 1164602 - Replace js::NullPtr and JS::NullPtr with nullptr_t; r=sfink
2015-05-13 14:07:34 -07:00
Boris Zbarsky
0472742d0c
Bug 1160628. Speed up the URL constructor in the common case of no base URI. r=baku
2015-05-05 13:38:56 -04:00
Andrew McCreight
9e8f4b219e
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Boris Zbarsky
864f723c0c
Bug 1155946 part 2. Add mayResolve methods to DOM classes with resolve hooks. r=peterv
2015-04-28 12:25:55 -04:00
Boris Zbarsky
d36060dc11
Bug 1157898 part 5. Eliminate the remaining non-ErrorResult consumers of ErrorResult::ErrorCode and make it protected. r=peterv
2015-04-27 09:18:52 -04:00
Boris Zbarsky
a8f7f27004
Bug 1157754 part 3. Make ClearMessage private on ErrorResult. r=peterv
2015-04-26 22:38:17 -04:00
Boris Zbarsky
e11db3193b
Bug 1157754 part 1. Add a way to "catch" an ErrorResult, and a way to safely convert an ErrorResult to an nsresult. r=peterv
2015-04-26 22:38:17 -04:00
Ehsan Akhgari
5d5a053562
Bug 1149987 - Part 4: Do not attempt to delete ErrorResult::mMessage when deserializing the object from IPDL; r=bzbarsky
...
In opt builds, we do not initialize mMessage, so the null check is going
to be ineffective to test whether mMessage has a value that we should
delete. But in IPDL, the ParamTraits Read method is only called with
freshly allocated objects, so we don't need to free anything here.
In order to be safe and ensure that we don't leak this memory, this
patch adds a number of assertions to check whether mMessage is
indeed only initialized where we expect it to.
2015-04-15 15:55:01 -04:00
Ehsan Akhgari
af406fe8b6
Bug 1149987 - Part 3: Give ErrorResult a move constructor and a move assignment operator; r=bzbarsky
2015-04-08 22:44:50 -04:00
Ehsan Akhgari
f061a90e54
Bug 1149987 - Part 1: Make it possible to send an ErrorResult that doesn't encode a JS exception through the IPDL layer; r=bzbarsky
2015-04-08 22:44:44 -04:00
Ryan VanderMeulen
d8ade60200
Backed out 5 changesets (bug 1149987) for mochitest crashes.
...
Backed out changeset b62e371d6189 (bug 1149987)
Backed out changeset daa762fca8e6 (bug 1149987)
Backed out changeset bdb64d5befa5 (bug 1149987)
Backed out changeset 693901a4bcde (bug 1149987)
Backed out changeset e7c41c8653c4 (bug 1149987)
CLOSED TREE
2015-04-08 11:49:49 -04:00
Ehsan Akhgari
61000b2825
Bug 1149987 - Part 3: Give ErrorResult a move constructor and a move assignment operator; r=bzbarsky
2015-04-08 10:27:37 -04:00
Ehsan Akhgari
451e8342c1
Bug 1149987 - Part 1: Make it possible to send an ErrorResult that doesn't encode a JS exception through the IPDL layer; r=bzbarsky
2015-04-08 10:27:35 -04:00
Cameron McCormack
03ca266d1b
Bug 1146235 - Part 2: Expose @@iterator aliases on XrayWrappers. r=peterv
2015-03-28 11:44:44 +11:00
Jason Orendorff
2e5f991fe0
Bug 1142784, part 2 - Change ProxyHandler::defineProperty() to make the desc argument a non-mutable handle. r=Waldo.
...
--HG--
extra : rebase_source : c40a50b3522e8306d68d8114fe576d4f43006d82
2015-02-17 11:58:43 -06:00
Terrence Cole
dd4ddb761b
Bug 1135985 - Split callback and marking tracers completely; r=jonco, r=mccr8
...
--HG--
extra : rebase_source : b2e435ebf64ec0bac42af7a8f0968578599fd67b
2015-02-25 13:11:37 -08:00
Phil Ringnalda
c4745d28b1
Backed out 9 changesets (bug 1142775, bug 1139683, bug 1143810, bug 1142761, bug 1142784, bug 1142794, bug 1144819) for widespread bustage
...
CLOSED TREE
Backed out changeset 7613fc978d36 (bug 1142794)
Backed out changeset e5f0cb31263d (bug 1142784)
Backed out changeset dcd0af73ac84 (bug 1142784)
Backed out changeset 034f9c8e79ee (bug 1142784)
Backed out changeset ce0ee37e3ca9 (bug 1142775)
Backed out changeset 1519b8f2bbba (bug 1142761)
Backed out changeset 26fd55677841 (bug 1139683)
Backed out changeset 7ebc76a450c3 (bug 1144819)
Backed out changeset 92adb459d519 (bug 1143810)
2015-03-22 09:34:25 -07:00
Jason Orendorff
db04193771
Bug 1142784, part 2 - Change ProxyHandler::defineProperty() to make the desc argument a non-mutable handle. r=Waldo.
...
--HG--
extra : rebase_source : 92dd18b10e100e7e2537c151a21d4f3be37e1c08
2015-02-17 11:58:43 -06:00
Boris Zbarsky
dc24477d79
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
Boris Zbarsky
5d2ae0a555
Bug 1140573 part 4. Drop the parent argument from js::NewFunctionByIdWithReserved. r=waldo
2015-03-09 12:50:08 -04:00
Boris Zbarsky
cc3b42e52a
Bug 1140573 part 3. Drop the parent argument from js::NewFunctionWithReserved. r=waldo
2015-03-09 12:50:07 -04:00
Boris Zbarsky
dcb007a0d8
Bug 1140573 part 1. Drop the parent argument from JS_NewFunction. r=waldo
2015-03-09 12:50:03 -04:00
Boris Zbarsky
5d69db0b28
Bug 1140582. Remove the parent argument from JS_NewObjectWithUniqueType. r=waldo
2015-03-09 12:49:50 -04:00
Boris Zbarsky
f0ef2a86aa
Bug 1131802 part 2. Allocate functions with reserved slots for DOM Xrays so we can store the Xray wrapper reference in those slots instead of as the function parent. r=peterv
2015-03-06 16:33:31 -05:00
Jason Orendorff
de9e3b99dc
Bug 1113369, part 3 - [[DefineOwnProperty]] ObjectOpResult support. r=Waldo, r=bz in dom, r=dvander in js/ipc, r=bholley in js/xpconnect.
...
Add an ObjectOpResult out-param for DefineProperty functions everywhere. We leave a few js::DefineProperty() convenience functions with no *result out-param. These have strict behavior: that is, they automatically check the result and throw if it is false. In bug 1125624 these strict signatures may end up being called DefinePropertyOrThrow, as that is what the spec calls it.
--HG--
extra : rebase_source : 36439a8fa433c453f63b02c93fceaf0d8b9e9626
2015-01-30 11:37:07 -06:00
L. David Baron
8de963d8ad
Back out bug 1131802 (changesets 80e90f586329 and 35c268f162db) and patch 2 from bug 1131805 (changeset 4139522bf814) on a CLOSED TREE for assertion failures.
...
Assertion failure: (ptrBits & 1) == 0, at ../../dist/include/js/Value.h
:871
called from XrayCreateFunction
2015-03-06 15:14:52 -08:00
Boris Zbarsky
05aaddd360
Bug 1131805 part 1. Remove remaining JS_GetParent and js::GetObjectParent uses in Gecko. r=bholley
2015-03-06 16:33:31 -05:00
Boris Zbarsky
6523d4990f
Bug 1131802 part 2. Allocate functions with reserved slots for DOM Xrays so we can store the Xray wrapper reference in those slots instead of as the function parent. r=peterv
2015-03-06 16:33:31 -05:00
Jon Coppeard
aee7dfb6c9
Bug 1138874 - Fix comments as per review feedback r=bz DONTBUILD
2015-03-06 15:06:57 +00:00
Boris Zbarsky
e0532c037e
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
Boris Zbarsky
19d83a360f
Bug 1139964 part 1. Factor out the guts of BackstagePass::Resolve and BackstagePass::Enumerate to allow reuse for other globals that want to opt in to Exposed=System WebIDL annotations. r=smaug
2015-03-06 01:08:06 -05:00
Jon Coppeard
0edff16cda
Bug 1138874 - Change ReparentWrapper() to avoid multiple JS objects pointing to the same native r=bholley
2015-03-05 13:39:53 +00:00
Ehsan Akhgari
c5cbd265c3
Bug 1050456 - Part 2: Add a nsGlobalWindow::GetIsPrerendered helper
2015-03-04 01:31:08 -05:00
Jan de Mooij
db18ff3df9
Bug 1137523 - Unprefix most js_* functions. r=bhackett CLOSED TREE
2015-02-27 16:08:15 +01:00
Boris Zbarsky
407a8559b0
Bug 1136925 part 1. Stop passing a parent to JS_CloneObject. r=waldo
2015-02-26 15:58:59 -05:00
Wes Kocher
f657cd0135
Backed out 4 changesets (bug 1136925) for potentially busting m-e10s-dt on a CLOSED TREE
...
Backed out changeset 331761aaae22 (bug 1136925)
Backed out changeset 2faa0e91fe23 (bug 1136925)
Backed out changeset a00f2530c911 (bug 1136925)
Backed out changeset d5e658bc0792 (bug 1136925)
2015-02-26 23:17:34 -08:00
Boris Zbarsky
78b6722596
Bug 1136925 part 1. Stop passing a parent to JS_CloneObject. r=waldo
2015-02-26 15:58:59 -05:00
Boris Zbarsky
30f7932607
Bug 1135810. Add more explicit checks for whether a descriptor wants Xrays or not instead of assuming that Xrays are desired if and only if descriptor.workers is false. r=peterv
2015-02-26 09:40:08 -05:00
Boris Zbarsky
bf177935d6
Bug 1136292 part 3. Stop passing a global as the parent arg to JS_NewObjectWithGivenProto in bindings code. r=peterv
2015-02-26 09:40:07 -05:00
Boris Zbarsky
9e8395b4c9
Bug 742194 part 1. Add support for throwing uncatchable exceptions to Web IDL bindings. People keep asking for this. r=khuey
2015-02-20 23:58:36 -05:00
Dhi Aurrahman
5b8f79fc23
Bug 1125766 - Throw proper error types for TextEncoder(), TextDecoder() and TextDecoder.decode(). r=bz
2015-02-04 18:46:26 +07:00