зеркало из https://github.com/mozilla/gecko-dev.git
Bug 983282 followup - root the IsRegisterElementEnabled parameter
Landing on a CLOSED TREE.
This commit is contained in:
Родитель
ef60f34260
Коммит
a6b6893225
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче