gecko/js
Bobby Holley c3882ecf88 Bug 823348 - Flip off the wantXrays for chrome sandboxes. r=mrbkap
wantXrays means that the sandbox wants Xray wrappers even when accessing same-
origin content. The default is true, which Blake says has something to do with
GreaseMonkey and days of old.

This flag never had an effect for chrome, because the chrome->chrome case always
short-circuited to &CrossCompartmentWrapper::singleton. But once we start
respecting the flag as a general-purpose indicator that Xrays should be applied
same-origin, we need to either add a special case in Rewrap or make the flag reflect
reality. The latter seems cleaner and more sane.

However, things are complicated by the fact that there's also a completely different,
orthogonal usage, whereby setting wantXrays to false implicitly waives Xray on the
returned sandbox _and_ on any results returned from evalInSandbox. This is just nuts.
The former can be accomplished by callers manually using .wrappedJSObject, and the
latter by having EvalInSandbox transitively apply waivers from their sandbox arguments.

I've updated the documentation on the MDN page so that it only describes the
reasonable usage. The next step is to get rid of the crazy behavior. I think the
best path of migration is to have wantXrays: false keep implicitly waiving, but
waive return values from EvalInSandbox based on whether the argument was waived. This
patch does that.
2013-01-23 06:04:39 +01:00
..
ductwork/debugger
examples
ipc Bug 752578 - Use mfbt's guard object implementation in js/ipc. r=Ms2ger 2012-12-27 11:20:22 -06:00
jsd bug 822289 - remove NS_IMPL_CYCLE_COLLECTION_CLASS and friends r=mccr8 2013-01-12 07:40:33 -05:00
public Bug 832026 - Measure JSRuntime::bumpAlloc_ in the JS memory reporter. r=sstangl. 2013-01-17 17:50:21 -08:00
src Bug 568953 - Fix for build warning; r=Ms2ger 2013-01-21 19:02:41 +01:00
xpconnect Bug 823348 - Flip off the wantXrays for chrome sandboxes. r=mrbkap 2013-01-23 06:04:39 +01:00