mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-12 23:12:21 +00:00
Bug 592930 - TM: set right compartment for mozJSComponentLoader::ModuleEntry::Clear r=mrbkap
This commit is contained in:
parent
e4f34e9705
commit
ffb04c43dd
@ -174,6 +174,7 @@ class mozJSComponentLoader : public mozilla::ModuleLoader,
|
||||
|
||||
if (global) {
|
||||
JSAutoRequest ar(sSelf->mContext);
|
||||
JSAutoEnterCompartment ac(sSelf->mContext, global);
|
||||
JS_ClearScope(sSelf->mContext, global);
|
||||
JS_RemoveObjectRoot(sSelf->mContext, &global);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user