mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 18:55:30 +00:00
2104ae00bb
This needs to be on the compartment to prevent creating duplicate wrapped natives. We now also allocate these objects in the compartment's first global for consistency and to prevent leaks. XPCWrappedNativeScope also stores the content XBL scope. I considered moving this to RealmPrivate, but given the fate of in-content XBL I went with the simpler option of keeping it on XPCWrappedNativeScope and release-asserting we have a single realm in the XBL case. Because XPCWrappedNativeScope no longer stores a global object, we no longer need XPCWrappedNativeScope::TraceSelf, XPCWrappedNativeProto::TraceInside and XPC_WN_Proto_Trace. Differential Revision: https://phabricator.services.mozilla.com/D14849 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
crashtests | ||
idl | ||
loader | ||
public | ||
shell | ||
src | ||
tests | ||
wrappers | ||
moz.build |