Bug 1657163 - Enable <dialog> in chrome UI for beta/release r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D85933
This commit is contained in:
Sean Feng
2020-08-05 14:26:29 +00:00
parent 38c7ed86ec
commit bd1e7152f7
6 changed files with 13 additions and 11 deletions

View File

@@ -338,7 +338,7 @@ bool HTMLFormElement::ParseAttribute(int32_t aNamespaceID, nsAtom* aAttribute,
nsAttrValue& aResult) {
if (aNamespaceID == kNameSpaceID_None) {
if (aAttribute == nsGkAtoms::method) {
if (StaticPrefs::dom_dialog_element_enabled()) {
if (StaticPrefs::dom_dialog_element_enabled() || IsInChromeDocument()) {
return aResult.ParseEnumValue(aValue, kFormMethodTableDialogEnabled,
false);
}