mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 864727 part 1. Root the global before calling WrapObject in XPCConvert. r=bholley
I sort of wish GetGlobalJSObject just returned a handle.
This commit is contained in:
parent
3f8a7bbc88
commit
eb0cabfa76
@ -840,8 +840,8 @@ XPCConvert::NativeInterface2JSObject(XPCLazyCallContext& lccx,
|
||||
return false;
|
||||
|
||||
if (!flat) {
|
||||
flat = cache->WrapObject(lccx.GetJSContext(),
|
||||
xpcscope->GetGlobalJSObject());
|
||||
JS::Rooted<JSObject*> global(cx, xpcscope->GetGlobalJSObject());
|
||||
flat = cache->WrapObject(cx, global);
|
||||
if (!flat)
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user