Bug 1289872 - Fixed the warning log spams due to bug 1275833. r=wchen

This commit is contained in:
John Dai 2016-08-04 04:22:00 +02:00
parent a99142a2c5
commit 996b1f61aa

View File

@ -26,7 +26,7 @@ CustomElementsRegistry::IsCustomElementsEnabled(JSContext* aCx, JSObject* aObjec
{
JS::Rooted<JSObject*> obj(aCx, aObject);
if (Preferences::GetBool("dom.webcomponents.customelements.enabled") ||
nsDocument::IsWebComponentsEnabled(aCx, obj)) {
Preferences::GetBool("dom.webcomponents.enabled")) {
return true;
}