mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 868130 - Use an AutoSafeJSContext in nsObjectLoadingContent::TeardownProtoChain. r=gabor
This commit is contained in:
parent
a69d5a9eff
commit
c65c7d599a
@ -3098,7 +3098,7 @@ nsObjectLoadingContent::TeardownProtoChain()
|
||||
|
||||
// Use the safe JSContext here as we're not always able to find the
|
||||
// JSContext associated with the NPP any more.
|
||||
JSContext *cx = nsContentUtils::GetSafeJSContext();
|
||||
AutoSafeJSContext cx;
|
||||
JS::Rooted<JSObject*> obj(cx, thisContent->GetWrapper());
|
||||
NS_ENSURE_TRUE(obj, /* void */);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user