Commit Graph

31 Commits

Author SHA1 Message Date
Brian Hackett
1a86feed43 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
b2769f4dd7 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.

--HG--
extra : rebase_source : 35fb0fa3c8f3d7bc952409ea8c584e58f3c1d78f
2014-09-26 15:16:36 -05:00
Peter Van der Beken
82ea691e0a 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.

--HG--
extra : rebase_source : 7a9aa81d3e9d74ed958374942020474147aa4f86
2014-09-15 16:51:40 +02:00
Peter Van der Beken
03f3b995b3 Bug 787070 - Expandos on the xray of DOM prototypes should have effect on xrays of DOM nodes, add resolve and enumerate native property hooks for the Window named properties object. r=bholley.
--HG--
extra : rebase_source : 984777790b3239474888608eb2593516568c279a
2014-09-15 16:51:38 +02:00
Peter Van der Beken
34ffd8ca34 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.
--HG--
extra : rebase_source : fdd72f5027b365554ab0b986de685204c8030c58
2014-09-09 15:19:10 +02:00
Peter Van der Beken
f5362987e1 Bug 787070 - Expandos on the xray of DOM prototypes should have effect on xrays of DOM nodes, create the named properties object from the binding code. r=bz.
--HG--
extra : rebase_source : 9147c989b0f6b5791d3e98041029e730036c3892
2014-09-05 22:36:36 +02:00
Peter Van der Beken
32edd5e887 Bug 787070 - Expandos on the xray of DOM prototypes should have effect on xrays of DOM nodes, give the WindowNamedPropertiesHandler a DOMIfaceAndProtoJSClass. r=bz.
--HG--
extra : rebase_source : dbe820c4bc90bf9dbdbf752d0c81bb231f6ffe60
2014-09-05 22:09:50 +02:00
Boris Zbarsky
291c91ca15 Bug 1017424 part 7. Remove code to handle XPConnect window wrappers from WindowNamedPropertiesHandler and XPCJSRuntime. r=peterv 2014-09-05 14:28:45 -04:00
Boris Zbarsky
8e7be996c0 Bug 1043690 part 2. Change the codegen for DOM proxies to ignore named props when looking up property descriptors on [[Set]]. r=efaust 2014-08-01 23:37:14 -04:00
Jan de Mooij
3c7459b21a Bug 1034191 - Make nsDependentJSString users work with Latin1 strings and nursery-allocated strings. r=bz 2014-07-05 17:30:54 +02:00
Eric Faust
ec142f1ef6 Bug 1027402 - Part 3: Mark all Proxy Handler methods const. (r=jorendorff, r=bz) 2014-06-27 04:44:06 -07:00
Carsten "Tomcat" Book
5f562e29f0 Backed out changeset 285c853fedfa (bug 1027402) 2014-06-27 14:21:20 +02:00
Eric Faust
a3511c108a Bug 1027402 - Part 3: Mark all Proxy Handler methods const. (r=jorendorff, r=bz) 2014-06-27 04:44:06 -07:00
Bobby Holley
da5622f8f9 Bug 1022016 - Redesign nsDependentJSString API to be less of a footgun. r=gabor 2014-06-10 20:15:56 -07:00
Boris Zbarsky
131179a544 Bug 1019417. When enumerating the window, make sure to not enumerate frame names that we wouldn't actually expose. r=bholley 2014-06-10 22:50:21 -04: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
Jason Orendorff
d50e6f5a9b Bug 547140, part 2 - Remove flags argument from JS_GetPropertyDescriptor and friends. r=Waldo. 2014-04-25 16:11:01 -05:00
Boris Zbarsky
ac9f0ba11d Bug 843840 part 2. Add a way to ask DOM proxies for only their enumerable property names, and use that in the enumerate hook. r=peterv 2014-04-15 22:58:44 -04:00
Boris Zbarsky
893f2b3907 Bug 993889 part 6. Remove the "scope" argument of dom::WrapObject methods. r=bholley 2014-04-10 00:58:43 -04:00
Boris Zbarsky
67076fac17 Bug 965154. Make the global scope polluter handle WebIDL Window objects. r=peterv 2014-02-05 13:38:18 -05:00
Olli Pettay
a23090c336 Bug 936969, make sure to null check the return value of GetFrameElementInternal(), r=bholley
--HG--
extra : rebase_source : 91f1276627c6f31aa2d8de18a1dfc8d8ee533bec
2013-11-11 18:56:45 +02:00
Peter Van der Beken
cbf7a0c800 Bug 918345 - Turn on WebIDL binding generation for Window and hook it up to quickstubs. r=bz.
--HG--
extra : rebase_source : 7bde7ddfe297e189ffa678ca1d9c34000bc904ec
2013-10-08 17:51:42 +02:00
Ms2ger
34f7a76bb1 Backout changeset 2e466ccc7bd0 for devtools test failures. 2013-10-26 17:02:20 +02:00
Peter Van der Beken
a521d7eace Bug 918345 - Turn on WebIDL binding generation for Window and hook it up to quickstubs. r=bz.
--HG--
extra : rebase_source : 673c08ef093339e6bfb1418366af5cc5fabe7c4d
2013-10-08 17:51:42 +02:00
Bobby Holley
6253d01e45 Bug 921454 - Refactor proxy creation to use an options object. r=jonco 2013-10-04 13:29:35 +02:00
Bobby Holley
a9dad336d3 Bug 916945 - Stop returning cross-origin subframes for named access in global scope (unless the iframe name matches). r=bz 2013-09-24 19:02:56 -07:00
Boris Zbarsky
42c7e4a89c Bug 903569. Remove the unneeded CheckPropertyAccess call in the GSP. r=bholley,peterv 2013-09-20 01:07:02 -04:00
Brian Hackett
c5eddd205d Bug 903802 - Give a singleton type to the global scope polluter proxy, r=jandem. 2013-09-19 16:24:48 -06:00
Terrence Cole
7eda53daed Bug 908942 - Fix some exact rooting hazards in dom; r=bz 2013-08-23 17:23:37 -07:00
Boris Zbarsky
f0d4325021 Bug 895758 followup. Fix the include guard and some spacing issues. 2013-08-10 01:10:18 -04:00
Peter Van der Beken
3256529063 Bug 895758. Make the global scope polluter a proxy. r=bzbarsky 2013-07-09 10:45:13 -04:00