Bug 868130 - Use an AutoSafeJSContext in nsObjectLoadingContent::TeardownProtoChain. r=gabor

This commit is contained in:
Bobby Holley 2013-05-22 10:05:24 -06:00
parent a69d5a9eff
commit c65c7d599a

View File

@ -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 */);