Bug 1398401 - Add preference check for custom element setup.

Tag UXP Issue #1344
This commit is contained in:
Gaming4JC 2020-01-05 12:26:22 -05:00 committed by Roy Tam
commit a8c9f80fbe

View file

@ -439,7 +439,9 @@ nsHtml5TreeOperation::CreateElement(int32_t aNs,
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);
}
}