Bug 1398401 - Add preference check for custom element setup. r=smaug

This commit is contained in:
John Dai
2017-09-12 00:40:00 -04:00
parent d2dfd47222
commit e12408afb5

View File

@@ -445,7 +445,9 @@ nsHtml5TreeOperation::CreateHTMLElement(
false);
// Custom element setup may be needed if there is an "is" attribute.
if (kNameSpaceID_None == nsuri && !prefix && nsGkAtoms::is == localName) {
if (nsContentUtils::IsWebComponentsEnabled() &&
kNameSpaceID_None == nsuri &&
!prefix && nsGkAtoms::is == localName) {
nsContentUtils::SetupCustomElement(newContent, &value);
}
}