Commit Graph

619 Commits

Author SHA1 Message Date
Bobby Holley
2588a209b9 Bug 965898 - Handleify more stuff. r=me 2014-07-30 12:23:04 -07:00
Bobby Holley
188b950181 Bug 965898 - Allow both gettable and settable attributes in Filter(). r=gabor 2014-07-30 12:23:03 -07:00
Bobby Holley
9352980643 Bug 965898 - Squelch exceptions during the shadowing detection in isCrossOriginAccessPermitted. r=gabor 2014-07-30 12:23:03 -07:00
Bobby Holley
03c3ed722d Bug 965898 - Switch policies for get{,Own}PropertyDescriptor. r=gabor 2014-07-30 12:23:03 -07:00
Bobby Holley
a34eafc995 Bug 965898 - Generalize FilterSetter to work on all the relevant fields of JSPropertyDescriptor. r=gabor 2014-07-30 12:23:03 -07:00
Bobby Holley
293d52dd8f Bug 965898 - Don't use a FilteringWrapper to get an unfiltered view in ChromeObjectWrapper. r=gabor
This is necessary because subsequent patches cause us to assert when invoking
getPropertyDescriptor on a FilteringWrapper for which |Policy| denies both GET
and SET.

This stuff is really a mess. I'm looking forward to it going away.
2014-07-30 12:23:02 -07:00
Bobby Holley
f0147535d7 Bug 965898 - Throw for [[Delete]] and [[DefineOwnProperty]]. r=gabor 2014-07-30 12:23:02 -07:00
Bobby Holley
85dbc0bbdf Bug 965898 - Implement proper behavior for [[Enumerate]] And [[OwnPropertyKeys]]. r=gabor 2014-07-30 12:23:02 -07:00
Bobby Holley
0036d9ecdb Bug 965898 - Cross-origin objects should have null prototypes. r=gabor 2014-07-30 12:23:02 -07:00
Bobby Holley
a6ddc83728 Bug 965898 - All properties from cross-origin objects are "configurable", non-enumerable, and non-writable. r=gabor 2014-07-30 12:23:02 -07:00
Bobby Holley
650ed7043d Bug 965898 - All properties on cross-origin DOM objects should be |own|. r=gabor 2014-07-30 12:23:01 -07:00
Bobby Holley
c186e009c9 Bug 965898 - Implement an Xray subclass that we can use to implement HTML5 cross-origin semantics. r=gabor 2014-07-30 12:23:01 -07:00
Bobby Holley
059da04f08 Bug 965898 - Drop support for XPCWN XOWs. r=gabor
XOWs only allow access to Window and Location, both of which are on WebIDL now.
2014-07-30 12:23:01 -07:00
Bobby Holley
f09600aa41 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
929220b018 Bug 965898 - Fix non-unified build bustage. r=me CLOSED TREE 2014-07-29 22:37:55 -07:00
Bobby Holley
5955f7bd14 Bug 965898 - Allow both gettable and settable attributes in Filter(). r=gabor 2014-07-29 21:35:32 -07:00
Bobby Holley
11fa02bd53 Bug 965898 - Squelch exceptions during the shadowing detection in isCrossOriginAccessPermitted. r=gabor 2014-07-29 21:35:32 -07:00
Bobby Holley
849c04fb55 Bug 965898 - Switch policies for get{,Own}PropertyDescriptor. r=gabor 2014-07-29 21:35:32 -07:00
Bobby Holley
14d83b4e14 Bug 965898 - Generalize FilterSetter to work on all the relevant fields of JSPropertyDescriptor. r=gabor 2014-07-29 21:35:31 -07:00
Bobby Holley
8c4bd564a7 Bug 965898 - Don't use a FilteringWrapper to get an unfiltered view in ChromeObjectWrapper. r=gabor
This is necessary because subsequent patches cause us to assert when invoking
getPropertyDescriptor on a FilteringWrapper for which |Policy| denies both GET
and SET.

This stuff is really a mess. I'm looking forward to it going away.
2014-07-29 21:35:31 -07:00
Bobby Holley
f808117401 Bug 965898 - Throw for [[Delete]] and [[DefineOwnProperty]]. r=gabor 2014-07-29 21:35:31 -07:00
Bobby Holley
2c94a4ea50 Bug 965898 - Implement proper behavior for [[Enumerate]] And [[OwnPropertyKeys]]. r=gabor 2014-07-29 21:35:31 -07:00
Bobby Holley
98b9699fe0 Bug 965898 - Cross-origin objects should have null prototypes. r=gabor 2014-07-29 21:35:30 -07:00
Bobby Holley
43a864d9f5 Bug 965898 - All properties from cross-origin objects are "configurable", non-enumerable, and non-writable. r=gabor 2014-07-29 21:35:30 -07:00
Bobby Holley
9ba51f87fd Bug 965898 - All properties on cross-origin DOM objects should be |own|. r=gabor 2014-07-29 21:35:30 -07:00
Bobby Holley
a40fd879cb Bug 965898 - Implement an Xray subclass that we can use to implement HTML5 cross-origin semantics. r=gabor 2014-07-29 21:35:30 -07:00
Bobby Holley
08e25aefc1 Bug 965898 - Drop support for XPCWN XOWs. r=gabor
XOWs only allow access to Window and Location, both of which are on WebIDL now.
2014-07-29 21:35:29 -07:00
Bobby Holley
344267d98d Bug 1042398 - Add a WaiveXrayWrapper override for ::iterate. r=gabor
I thought we had overrides for all the proxy traps that returned non-primitive
values, but it looks like we missed one.
2014-07-23 15:20:05 -07:00
Wes Kocher
62afd855cc Backed out changeset 79d2db9a2a2c (bug 1042398) for build bustage on a CLOSED TREE 2014-07-23 13:08:24 -07:00
Bobby Holley
a739e167e2 Bug 1042398 - Add a WaiveXrayWrapper override for ::iterate. r=gabor
I thought we had overrides for all the proxy traps that returned non-primitive
values, but it looks like we missed one.
2014-07-23 12:36:22 -07:00
Boris Zbarsky
f10d7405dc Bug 1021066. Make named setters work even for non-overridebuiltins bindings over Xrays. r=bholley,jorendorff 2014-07-23 01:06:33 -04:00
Mike Hommey
9ae3c48776 Bug 1041860 - Avoid setting FINAL_LIBRARY to libraries that further use a FINAL_LIBRARY. r=mshal 2014-07-23 08:37:51 +09:00
Bobby Holley
deb1ca3fff Bug 742444 - Only propagate waivers between same-origin compartments. r=gabor 2014-07-22 16:14:27 -07:00
Bobby Holley
2871b564be Bug 742444 - Pass the old wrapper or value to the prewrap callback instead of its flags. r=gabor
We need this so that we can reason about the origin of the wrapper that
previously had a waiver and decide whether or not to extend it.
2014-07-22 16:14:27 -07:00
Bobby Holley
5daf331156 Bug 930091 - Check objects at COW membranes. r=gabor,r=msucan 2014-07-20 15:36:32 -06:00
Bobby Holley
03556935f1 Bug 1040181 - Use an opaque wrapper rather than failing in Rewrap. r=gabor 2014-07-20 10:03:58 -06:00
Bobby Holley
04684eed2d Bug 1038844 - Implement a COW opt-out for automation. r=gabor,sr=mrbkap 2014-07-17 21:34:48 -07:00
Bobby Holley
2052f2965f Bug 1036185 - Clean up logic in IsPermitted (bonus fix). r=gabor 2014-07-15 09:04:19 -07:00
Bill McCloskey
4f4ba18792 Bug 1017323 - Fix some non-unified build bustage 2014-07-14 22:49:09 -07:00
Bill McCloskey
7db6f29449 Bug 1017323 - Add-on interposition (r=bholley) 2014-07-14 22:10:05 -07:00
Bobby Holley
bf077afa17 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
fd59f850a8 Bug 856067 - Remove special case for content XBL scopes. r=gabor
This is now the default behavior. \o/
2014-07-14 10:09:07 -07:00
Bobby Holley
1576579a77 Bug 856067 - Make unwaived non-Xrayable objects opaque from privileged code. r=gabor 2014-07-14 10:09:07 -07:00
Boris Zbarsky
8ea5b82c24 Bug 832014 part 9. Switch AccessCheck to using the generated LocationBinding::IsPermitted method. r=bholley 2014-07-11 19:34:44 -04:00
Bobby Holley
1972c350ad 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
a51e8b671a Bug 987669 - Turn on Xrays for Error objects. r=gabor 2014-07-11 09:09:22 -07:00
Bobby Holley
ad5f40b172 Bug 987669 - Add Xray support for FooError.prototype.name. r=gabor 2014-07-11 09:09:22 -07:00
Bobby Holley
06fa9d262f Bug 987669 - Implement Xray support for the data properties on ErrorObject instances. r=gabor 2014-07-11 09:09:21 -07:00
Bobby Holley
30b1cd73d5 Bug 987669 - Implement IsErrorObjectKey and do more at compile-time. r=gabor 2014-07-11 09:09:21 -07:00
Chris Peterson
8164414591 Bug 1036778 - Replace MOZ_ASSUME_UNREACHABLE with MOZ_CRASH in js/xpconnect. r=bholley 2014-06-29 20:42:36 -07:00