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
Родитель ef60f34260
Коммит a6b6893225
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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