Bug 983282 followup - root the IsRegisterElementEnabled parameter

Landing on a CLOSED TREE.
This commit is contained in:
Steve Fink 2014-03-18 20:25:15 -07:00
parent df7910132c
commit 5efa0fa5aa

View File

@ -5476,8 +5476,9 @@ nsDocument::CustomElementConstructor(JSContext* aCx, unsigned aArgc, JS::Value*
bool
nsDocument::IsRegisterElementEnabled(JSContext* aCx, JSObject* aObject)
{
JS::Rooted<JSObject*> obj(aCx, aObject);
return Preferences::GetBool("dom.webcomponents.enabled") ||
IsInCertifiedApp(aCx, aObject);
IsInCertifiedApp(aCx, obj);
}
nsresult