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
Bobby Holley
f809b3f8fc
Bug 976148 - Support the 'prototype' property for standard constructors. r=gabor
2014-06-19 09:57:06 -07:00
Bobby Holley
6f76ec9e20
Bug 976148 - Implement Xrays to Function objects. r=gabor
2014-06-19 09:57:06 -07:00
Bobby Holley
a112c74d76
Bug 987163 - Implement Xrays for TypedArrays. r=gabor
2014-06-17 10:16:08 -07:00
Bobby Holley
c1d87606e3
Bug 987163 - Fix some squelched OOMs. r=gabor
2014-06-17 10:16:08 -07:00
Bobby Holley
ae1bad3ec5
Bug 987163 - Convert from |switch| statements to |if| statements. r=gabor
...
I realized that the switches are going to be cumbersome for Array stuff, because
we'll have to enumerate each kind of TypedArray as a separate case: statement.
Let's just use |if| so that we can call a helper.
2014-06-17 10:16:08 -07:00
Bobby Holley
cfef6a798e
Bug 1020609 - Implement Xrays to Arrays. r=bz
2014-06-11 15:16:07 -07:00
Bobby Holley
a1224afe5e
Bug 1020609 - Make configurability check in Xray defineProperty match the spec. r=bz
...
This code is basically emulating the ES semantics with respect to non-configurable
properties. Non-configurable value properties can still be writable, in which case
their value and writability may be updated.
2014-06-11 15:16:06 -07:00
Bobby Holley
30064d33fd
Bug 1022016 - Redesign nsDependentJSString API to be less of a footgun. r=gabor
2014-06-10 20:15:56 -07:00
Trevor Saunders
9a83f7ad77
bug 1021171 - don't return nulllptr in functions returning bool r=bz,waldo
2014-06-06 15:31:30 -04:00
Bobby Holley
0334f7bfa3
Bug 987111 - Flip on Object Xrays. r=gabor
2014-06-05 22:32:39 -07:00
Bobby Holley
ebcf27d35f
Bug 987111 - Implement delete_ for Object Xrays. r=gabor
2014-06-05 22:32:39 -07:00
Bobby Holley
9d60463754
Bug 987111 - Implement defineProperty for Object Xrays. r=gabor
2014-06-05 22:32:39 -07:00
Bobby Holley
f2bb2af546
Bug 987111 - Implement resolveOwnProperty and enumerateNames for Object instances. r=gabor
2014-06-05 22:32:38 -07:00
Bobby Holley
71fcbffa91
Bug 987111 - Handle the Object.prototype case in Xray getPrototypeOf. r=gabor
2014-06-05 22:32:38 -07:00
Bobby Holley
c220920569
Bug 987111 - Fill out existing_desc with all properties, not just |own| ones. r=gabor
...
This gives us strictly more information than we had before, which turns out to
be useful. We can still get the old behavior by testing the identity of
desc.object(), which I've done in one of the two existing uses for existing_desc.
The other (in DOMXrayTraits::defineProperty) is actually more correct with the
full (non-own) lookup.
2014-06-05 22:32:38 -07:00
Vivien Nicolas
415826b1df
Bug 1015887 - Expose realFrameElement to Chrome JS. r=bholley
2014-06-04 20:11:05 +02:00
Wes Kocher
0558a0360e
Backed out 13 changesets (bug 987111) for disagreeing with some patch from b-i or fx-team in tonight's merge to hopefully fix a CLOSED TREE
...
Backed out changeset d4e390ceac27 (bug 987111)
Backed out changeset 5f88b5ef9496 (bug 987111)
Backed out changeset cdfd24ddf448 (bug 987111)
Backed out changeset 7883150e5471 (bug 987111)
Backed out changeset 407c7ca82ada (bug 987111)
Backed out changeset e7140ccf7e09 (bug 987111)
Backed out changeset 0a4d18d6306f (bug 987111)
Backed out changeset e7b7548867d9 (bug 987111)
Backed out changeset 944d128f135a (bug 987111)
Backed out changeset 33860f30fc4f (bug 987111)
Backed out changeset 518a915fb81b (bug 987111)
Backed out changeset 7576a51cf72e (bug 987111)
Backed out changeset 1a8dc1af9de6 (bug 987111)
2014-06-04 22:12:50 -07:00
Bobby Holley
b32d5afdad
Bug 987111 - Flip on Object Xrays. r=gabor
2014-06-04 15:12:27 -07:00
Bobby Holley
db1c7852e8
Bug 987111 - Implement delete_ for Object Xrays. r=gabor
2014-06-04 15:12:27 -07:00
Bobby Holley
0a7010d16b
Bug 987111 - Implement defineProperty for Object Xrays. r=gabor
2014-06-04 15:12:27 -07:00
Bobby Holley
796db35d2c
Bug 987111 - Implement resolveOwnProperty and enumerateNames for Object instances. r=gabor
2014-06-04 15:12:27 -07:00
Bobby Holley
a272d2ce58
Bug 987111 - Handle the Object.prototype case in Xray getPrototypeOf. r=gabor
2014-06-04 15:12:26 -07:00