gecko-dev/js/xpconnect
Boris Zbarsky 7ad35e1f86 Bug 1289428. Make sure JSCompartment::wrap never returns a gray object, except when it returns "existing". r=bholley,jonco
The basic idea is that we assume the invariant that the "obj" argument is never
gray if "existing" is null (and add asserts to that effect).  Starting from that
assumption, terrence and I audited all the return paths to ensure that gray
objects are never returned.  We found a few places, generally after crossing
compartments with UncheckedUnwrap, where we could have gray things and inserted
corresponding calls to ExposeObjectToActiveJS.

If "existing" is passed in, all bets are off: both "obj" and "existing" can be
gray and can get returned from here.  But the only caller that passes "existing"
doesn't allow the return value to escape, so it's actually safe to do this.
2016-08-02 11:10:58 -07:00
..
crashtests Bug 1288791 part 2. Rename WrapNativeParent to FindAssociatedGlobal and update it to actually do that. r=bkelly 2016-07-27 11:05:36 -04:00
idl Bug 1282150 part 6. Get rid of GetSafeJSContext. r=bholley 2016-07-07 20:08:26 -04:00
loader Backed out changeset 539b9c11ee64 (bug 1286009) for xpcshell bustage CLOSED TREE 2016-07-20 11:04:05 -07:00
public Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
shell Bug 1285356: Fix blocklist initialization regressions; r=bsmedberg 2016-07-07 17:00:23 -06:00
src merge mozilla-inbound to mozilla-central a=merge 2016-08-02 17:09:31 +02:00
tests Merge mozilla-central to mozilla-inbound 2016-07-22 11:59:06 +02:00
wrappers Bug 1289428. Make sure JSCompartment::wrap never returns a gray object, except when it returns "existing". r=bholley,jonco 2016-08-02 11:10:58 -07:00
moz.build Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00