Issue #2532 - Default pref check to true

This commit is contained in:
Moonchild 2024-06-15 11:42:00 +02:00 committed by roytam1
commit f598fe63cd
3 changed files with 3 additions and 3 deletions

View file

@ -5936,7 +5936,7 @@ HTMLInputElement::ParseAttribute(int32_t aNamespaceID,
return aResult.ParseEnumValue(aValue, kFormMethodTable, false);
}
if (aAttribute == nsGkAtoms::formenctype) {
if (Preferences::GetBool("dom.dialog_element.enabled", false)) {
if (Preferences::GetBool("dom.dialog_element.enabled", true)) {
return aResult.ParseEnumValue(aValue, kFormMethodTableDialogEnabled, false);
}
return aResult.ParseEnumValue(aValue, kFormEnctypeTable, false);