Bobby Holley
3912bf0c68
Bug 1072174 - Handle all the cases XrayWrapper.cpp. r=peterv
2014-09-24 21:58:33 +02:00
Jeff Walden
44540b0763
Bug 896116 - Implement %TypedArray% and %TypedArray%.prototype. r=till, r=bholley
2014-08-21 20:39:30 -07:00
Jeff Walden
2e21002891
Bug 896116 - Morph the dependent-JSProtoKey system to explicitly store a JSProtoKey, rather than relying on a system where a single class represents the parent and dependent both. Also convert error objects (Error, RangeError, &c.) to be represented by multiple classes, not a single one. r=bholley, r=till
2014-09-18 20:06:32 -07:00
Bobby Holley
7d0c27ef8e
Bug 1060521 - Remove infrastructure for Xrayed NewResolve, GetProperty, and SetProperty on XPCWrappedNatives. r=peterv
2014-09-15 14:13:02 +02:00
Ehsan Akhgari
7e755801f0
Bug 1060977 - Fix more bad implicit constructors in xpconnect; r=smaug
2014-08-31 21:06:35 -04:00
Eric Faust
e24e711dc5
Bug 1027425 - Make all Proxy handler constructors use MOZ_CONSTEXPR. (r=bz, r=froydnj)
2014-08-28 13:47:16 -07:00
Eric Faust
98caef77fd
Bug 1017862 - Remove virtual destructor from BaseProxyHandler. (r=jorendorff)
2014-08-28 13:30:56 -07:00
Peter Van der Beken
82418365e7
Bug 1041731 - Unforgeable Xrayed methods aren't getting cached on the holder. r=bholley.
2014-08-22 11:25:07 +02:00
Seth Fowler
6d30ddc363
Bug 913586 (Part 6) - Update Maybe users in js. r=luke
2014-08-13 15:42:00 -07:00
Jason Orendorff
d25f85f375
Bug 1041261, part 6 - Update a few comments in XPConnect for symbol jsids. r=bholley.
2014-08-02 06:54:58 -05:00
Bobby Holley
e9841317e0
Bug 1042436 - Warn once to the console when XrayWrappers deny access to an object. r=gabor,sr=smaug
2014-08-06 23:32:23 -04:00
Bobby Holley
94daf19f93
Bug 1042436 - Lowercase the "reason" param to SilentFailure. r=me
2014-08-06 23:32:22 -04:00
Bobby Holley
8f010bb4b9
Bug 1042436 - Always enter the wrapper's compartment before invoking SilentFailure. r=gabor
2014-08-06 23:32:22 -04:00
Bobby Holley
010d1c0e0a
Bug 965898 - Switch policies for get{,Own}PropertyDescriptor. r=gabor
2014-07-30 12:23:03 -07:00
Bobby Holley
b892a36e71
Bug 965898 - Implement proper behavior for [[Enumerate]] And [[OwnPropertyKeys]]. r=gabor
2014-07-30 12:23:02 -07:00
Bobby Holley
24a6a77567
Backed out 16 changesets (bug 965898) for rooting hazards. CLOSED TREE
...
Backed out changeset ac4abde3579f (bug 965898)
Backed out changeset c4c7ab1a2f70 (bug 965898)
Backed out changeset e0bf3598dfe1 (bug 965898)
Backed out changeset 8f2788a0ba24 (bug 965898)
Backed out changeset 0d1cda4decaa (bug 965898)
Backed out changeset 3d80ffc439fb (bug 965898)
Backed out changeset ad66ab36fe2d (bug 965898)
Backed out changeset dcf7ccf6eff2 (bug 965898)
Backed out changeset d3f02e80355d (bug 965898)
Backed out changeset 212f2d05d9e7 (bug 965898)
Backed out changeset c350a2c0aa6d (bug 965898)
Backed out changeset c75acd0663a9 (bug 965898)
Backed out changeset d68f7ef0ae69 (bug 965898)
Backed out changeset 610e6d6e1a88 (bug 965898)
Backed out changeset 54d40a30f6ad (bug 965898)
Backed out changeset 403a0e1d2324 (bug 965898)
2014-07-29 22:57:59 -07:00
Bobby Holley
4ed05f74bb
Bug 965898 - Switch policies for get{,Own}PropertyDescriptor. r=gabor
2014-07-29 21:35:32 -07:00
Bobby Holley
544f901fa4
Bug 965898 - Implement proper behavior for [[Enumerate]] And [[OwnPropertyKeys]]. r=gabor
2014-07-29 21:35:31 -07:00
Boris Zbarsky
d9044e7cd5
Bug 1021066. Make named setters work even for non-overridebuiltins bindings over Xrays. r=bholley,jorendorff
2014-07-23 01:06:33 -04:00
Bobby Holley
746ea001ec
Bug 856067 - Add some helpful logging to the console when we deny access to a non-Xrayable object. r=gabor
2014-07-14 10:09:07 -07:00
Bobby Holley
aae46cc234
Bug 856067 - Make unwaived non-Xrayable objects opaque from privileged code. r=gabor
2014-07-14 10:09:07 -07:00
Bobby Holley
86b779c53e
Bug 987669 - Just use macros because MSVC and gcc don't have real constexpr support. r=me CLOSED TREE
2014-07-11 09:37:00 -07:00
Bobby Holley
f1766623ef
Bug 987669 - Turn on Xrays for Error objects. r=gabor
2014-07-11 09:09:22 -07:00
Bobby Holley
89bd8ccdbc
Bug 987669 - Add Xray support for FooError.prototype.name. r=gabor
2014-07-11 09:09:22 -07:00
Bobby Holley
b57b90b93b
Bug 987669 - Implement Xray support for the data properties on ErrorObject instances. r=gabor
2014-07-11 09:09:21 -07:00
Bobby Holley
92bfbc5623
Bug 987669 - Implement IsErrorObjectKey and do more at compile-time. r=gabor
2014-07-11 09:09:21 -07:00
Chris Peterson
f1d22dca6e
Bug 1036778 - Replace MOZ_ASSUME_UNREACHABLE with MOZ_CRASH in js/xpconnect. r=bholley
2014-06-29 20:42:36 -07:00
Bobby Holley
bc09c8bbda
Bug 1034239 - Replace GentlyOpaque with an "Xray-to-nothing" wrapper. r=gabor
...
I did this wrong before. Making this a SecurityWrapper means that the caller does
not subsumes the target, and that the target therefore needs to be protected
from the caller. But GentlyOpaque was supposed to be an analog of PermissiveXray
for use when no useful XrayTraits exist, so it should behave similarly.
If we make this a Filtering Security Wrapper, we get a bunch of assertions where we
expect CheckedUnwrap to succeed for a chrome-side wrapper. And we can't making it
a Filtering Non-Security Wrapper, because then the filtering policy isn't even
consulted (an optimization in jsproxy.cpp).
Really, we want all of the Xray machinery (like the ability to waive and to place
expandos), and we just don't want to resolve any properties. This patch does this.
2014-07-10 09:31:37 -07:00
Bobby Holley
7757b8aed9
Bug 1033927 - Drop support for custom [object XrayWrapper [object ClassName]] stringification. r=peterv
2014-07-07 13:11:24 -07:00
Jan de Mooij
1d6a780efe
Bug 1034191 - Make nsDependentJSString users work with Latin1 strings and nursery-allocated strings. r=bz
2014-07-05 17:30:54 +02:00
Bobby Holley
01b8658679
Bug 1029933 - Introduce and use ParentKeyForStandardClass. r=Waldo
2014-07-04 12:41:28 -07:00
Bobby Holley
80b6ef7b58
Bug 1029933 - Introduce the concept of "dependent" standard classes and handle them in the ClassSpec infrastructure. r=Waldo
2014-07-04 12:41:28 -07:00
Bobby Holley
d39c5e3b16
Bug 1032317 - Make CompartmentPrivate and XPCWrappedNativeScope accessors infallible. r=gabor
2014-07-03 09:40:52 -07:00
Bobby Holley
a7ef68b624
Bug 1033920 - Handle null in XrayWrapper::setPrototypeOf. v1 r=efaust
...
From ac73068c4494c0df74329482e57f64ba8ec93cb4 Mon Sep 17 00:00:00 2001
2014-07-02 21:06:28 -07:00
Bobby Holley
62644a9902
Bug 1033253 - Null-check the result of JS_GetFunctionId. r=bz
2014-07-02 11:02:11 -07:00
Steve Fink
d92f691a43
Bug 1022773 - Return value rooting for XPConnect, r=bholley
2014-06-25 15:35:37 -07:00
Eric Faust
fdb84be9f3
Bug 1027402 - Part 4: Mark Proxy Handler uses const. (r=jorendorff, r=bz)
2014-06-27 04:44:08 -07:00
Eric Faust
122811aa1e
Bug 1027402 - Part 3: Mark all Proxy Handler methods const. (r=jorendorff, r=bz)
2014-06-27 04:44:06 -07:00
Eric Faust
51c149ff8f
Bug 1027402 - Part 2: Mark Proxy Handler instances as const. (r=bholley, r=bz over IRC)
2014-06-27 04:44:04 -07:00
Eric Faust
abf1be407c
Bug 1027402 - Part 1: Remove set* from BaseProxyHandler. (r=bholley)
2014-06-27 04:44:02 -07:00
Carsten "Tomcat" Book
226c1ea9df
Backed out changeset 2c6403818106 (bug 1027402) for bustage on a CLOSED TREE
2014-06-27 14:21:46 +02:00
Carsten "Tomcat" Book
026215908a
Backed out changeset 346912776f97 (bug 1027402)
2014-06-27 14:21:22 +02:00
Carsten "Tomcat" Book
6d91e7ccb9
Backed out changeset 285c853fedfa (bug 1027402)
2014-06-27 14:21:20 +02:00
Carsten "Tomcat" Book
729d8ef5a3
Backed out changeset 96443362db6f (bug 1027402)
2014-06-27 14:21:17 +02:00
Eric Faust
d9eb770555
Bug 1027402 - Part 4: Mark Proxy Handler uses const. (r=jorendorff, r=bz)
2014-06-27 04:44:08 -07:00
Eric Faust
7c512d564b
Bug 1027402 - Part 3: Mark all Proxy Handler methods const. (r=jorendorff, r=bz)
2014-06-27 04:44:06 -07:00
Eric Faust
7a21439f3d
Bug 1027402 - Part 2: Mark Proxy Handler instances as const. (r=bholley)
2014-06-27 04:44:04 -07:00
Eric Faust
593b6e3f34
Bug 1027402 - Part 1: Remove set* from BaseProxyHandler. (r=bholley)
2014-06-27 04:44:02 -07:00
Jason Orendorff
8567ce66f2
Bug 645416, part 22 - Remove JSCompartment::wrapId. r=terrence.
...
This is unnecessary now that object jsids no longer exist. Both string and
symbol jsids point only to GC things in the atoms compartment, which are safe
to pass to any compartment without wrapping.
2014-06-23 10:57:02 -05:00
Bobby Holley
8ec5151645
Bug 976148 - Support the .name and .length properties of Function instances. r=gabor
2014-06-19 09:57:06 -07:00