Boris Zbarsky
8d927838b6
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
b6ca5524c4
Bug 1138874 - Fix comments as per review feedback r=bz DONTBUILD
2015-03-06 15:06:57 +00:00
Boris Zbarsky
285b44b531
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
10483155f6
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
1ebfefb607
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
a6e999ddc5
Bug 1050456 - Part 2: Add a nsGlobalWindow::GetIsPrerendered helper
2015-03-04 01:31:08 -05:00
Jan de Mooij
b3f1ff13a2
Bug 1137523 - Unprefix most js_* functions. r=bhackett CLOSED TREE
2015-02-27 16:08:15 +01:00
Boris Zbarsky
513c8ecf34
Bug 1136925 part 1. Stop passing a parent to JS_CloneObject. r=waldo
2015-02-26 15:58:59 -05:00
Wes Kocher
64ff21e8a1
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
5947179f5e
Bug 1136925 part 1. Stop passing a parent to JS_CloneObject. r=waldo
2015-02-26 15:58:59 -05:00
Boris Zbarsky
65fece0eae
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
e554a122d8
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
2bea3a108b
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
7e9effba7e
Bug 1125766 - Throw proper error types for TextEncoder(), TextDecoder() and TextDecoder.decode(). r=bz
2015-02-04 18:46:26 +07:00
Tom Schuster
326af0e06e
Bug 1127443 - Move some JS_NewObject callers to JS_NewObjectWithGiveProto
2015-01-31 16:18:51 +01:00
Boris Zbarsky
60b29824d3
Bug 1127206. Don't try to do binding UnwrapArgImpl on worker threads. It can't do anything useful there. r=peterv
2015-01-30 13:54:43 -05:00
Bill McCloskey
3fdc0539fb
Bug 1123461 - Make a real interface for js/ipc (r=dvander)
2015-01-26 13:32:18 -08:00
Ehsan Akhgari
4cb0718283
Bug 1069719 - Abort the execution of scripts when a prerendered page calls an IDL blacklisted function; r=bzbarsky
2015-01-26 11:02:56 -05:00
Boris Zbarsky
c37f97d98c
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
Ms2ger
2c36b38c93
Bug 914067 - Remove JSVAL_VOID from dom/; r=jst
2015-01-14 08:59:06 +01:00
Boris Zbarsky
575f09296c
Bug 1117167. Make the generated implementation classes for JS-implemented bindings store an nsIGlobalObject, not an nsPIDOMWindow, so we can use them in sandboxes. r=peterv
2015-01-08 11:57:19 -05:00
Jeff Walden
18d8659106
Bug 603201 - Make HasPropertyOnPrototype fallible. r=peterv
2015-01-02 14:02:36 -06:00
Boris Zbarsky
b438a3bd36
Bug 1107592 part 2. Allow chrome JS to directly throw content DOMExceptions that will propagate out to the web script. r=peterv
2015-01-02 17:08:33 -05:00
Jason Orendorff
ddde8586c6
Bug 1103368, part 5 - Make Class::getProperty and setProperty nullable instead of needing stub functions. Never store stub functions in JSPropertyDescriptors. r=bhackett.
2014-11-22 12:23:39 -06:00
Boris Zbarsky
ffbd31df6a
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
Boris Zbarsky
b5b371d4d4
Bug 1096011. Warning when failing to create a JS implemntation for a Web IDL binding should include the implementation contract. r=peterv
2014-11-24 11:57:49 -05:00
Boris Zbarsky
8410a6bdae
Bug 1089079. Make .length on interface objects configurable. r=peterv
2014-11-24 12:56:32 +00:00
Andrea Marchesini
b5a05079a9
Bug 1077393 - Rename ScalarValueString to USVString. r=smaug
2014-11-20 12:58:00 +01:00
Steve Fink
d08a76c934
Bug 1053999 - Conservative stack check should assume untrusted code, r=bholley
2014-11-13 12:23:11 -08:00
Tom Schuster
28c663f4ae
Bug 993026 - Change resolve hook in browser/XPC. r=bholley
2014-11-08 01:07:12 +01:00
Boris Zbarsky
2adab31a77
Bug 1088002 part 3. Stop requiring JSPROP_PROPOP_ACCESSORS just to use stub accessors. r=waldo
2014-10-29 15:06:32 -04:00
Boris Zbarsky
28a09cbcd7
Bug 1088002 part 2. Change JS_DefineElement, JS_DefineProperty, JS_DefineUCProperty, JS_DefinePropertyById, and JS_DefineProperties to default to using JSNative accessors, not JSPropertyOp accessors. r=waldo
2014-10-29 15:06:31 -04:00
Boris Zbarsky
db77bdf858
Back out part of bug 1084001 because the tests are being silly.
2014-10-25 01:58:59 -04:00
Boris Zbarsky
893eb39204
Bug 1084001. Set the .name of DOM interface objects to the name of the interface. r=peterv
2014-10-25 00:50:28 -04:00
Boris Zbarsky
faf9c68f5c
Bug 1087404. Get rid of XPCQuickStubs.h/cpp. r=bholley
2014-10-23 15:21:46 -04:00
Boris Zbarsky
c43105f6a0
Bug 1019191 part 23. Eliminate the ppArgRef argument of xpc_qsUnwrapArgImpl and UnwrapArg, since we're now always handing out a ref in ppArg. r=peterv
2014-10-22 11:40:51 -04:00
Boris Zbarsky
3efb8c38af
Bug 1019191 part 22. Eliminate the effectively unused vp argument of xpc_qsUnwrapArgImpl. r=peterv
2014-10-22 11:40:51 -04:00
Boris Zbarsky
4776bf1504
Bug 1019191 part 21. Change xpc_qsUnwrapArgImpl and UnwrapArg to take a HandleObject, not a HandleValue. r=peterv
2014-10-22 11:40:50 -04:00
Boris Zbarsky
608daa3798
Bug 1019191 part 19. Change GlobalObject::GetAsSupports to not rely on UnwrapArg producing an nsISupports for non-reflectors. r=peterv
2014-10-22 11:40:50 -04:00
Boris Zbarsky
e15032b816
Bug 1019191 part 10. Stop using xpc_qsUnwrapArg directly in BindingUtils. r=peterv
2014-10-22 11:40:48 -04:00
Brian Hackett
851423a90a
Bug 1073842 - Remove slots/elements from non-native objects, use a new layout for proxies and typed objects, r=luke,billm,efaust,bz,sfink,jandem.
2014-10-17 16:57:52 -07:00
Jason Orendorff
6b4db7d3a8
Bug 1082672, part 4 - Change XrayWrapper code to be able to resolve symbol-keyed methods. r=bz, r=bholley.
2014-09-18 12:30:38 -05:00
Tom Schuster
4e0dfb7481
Bug 1069694 - Remove OldDebugAPI from the browser. r=shu
2014-10-12 19:37:41 +02:00
Jason Orendorff
5823a20a9a
Bug 1026918, part 1 - Rename BaseProxyHandler::getOwnPropertyNames -> ownPropertyKeys to match the ES6 [[OwnPropertyKeys]] internal method. r=efaust, r=bz.
...
Also renamed in this patch:
ENUMERATE_IF_DEFINED -> ADD_KEYS_IF_DEFINED
XrayEnumerateAttributesOrMethods -> XrayAttributeOrMethodKeys
XrayEnumerateNativeProperties -> XrayOwnNativePropertyKeys
XrayEnumerateProperties -> XrayOwnPropertyKeys
WrapperOwner::getPropertyNames -> getPropertyKeys
These make sense because JSITER_* flags are involved; the functions in
question are not for finding enumerable properties only.
2014-09-26 15:16:36 -05:00
Bobby Holley
f9f19ca4e9
Bug 987794 - Don't unwrap XrayWrappers in HasPropertyOnPrototype. r=bz
2014-10-02 18:34:16 +02:00
Neil Rashbrook
c8e63657b3
Bug 1074114 Propagate error thrown when constructing the JS implementation r=bz
2014-10-02 01:37:50 +01:00
Peter Van der Beken
487915a1b7
Bug 787070 - Expandos on the xray of DOM prototypes should have effect on xrays of DOM nodes, make Xrays walk the prototype chain when resolving DOM properties. r=bholley.
...
* * *
Bug 787070 - Expandos on the xray of DOM prototypes should have effect on xrays of DOM nodes, remove obsolete code. r=bholley.
2014-09-15 16:51:40 +02:00
Peter Van der Beken
44c582ad01
Bug 787070 - Expandos on the xray of DOM prototypes should have effect on xrays of DOM nodes, add a named properties object type to DOMObjectType and how to get the parent prototype object in DOMIfaceAndProtoJSClass. r=bz, r=bholley.
2014-09-09 15:19:10 +02:00
Peter Van der Beken
0853409783
Bug 787070 - Expandos on the xray of DOM prototypes should have effect on xrays of DOM nodes, move some code around. r=bholley.
2013-10-18 13:22:08 +02:00
Peter Van der Beken
ab266279c3
Bug 787070 - Expandos on the xray of DOM prototypes should have effect on xrays of DOM nodes, make CreateInterfaceObjects take a js::Class instead of a JSClass. r=bz.
2014-08-05 12:46:42 +02:00