Bug 1827019 - Reset mFieldset after unlink; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D176356
This commit is contained in:
@@ -1938,7 +1938,8 @@ void nsGenericHTMLFormElement::AfterSetAttr(
|
||||
}
|
||||
|
||||
void nsGenericHTMLFormElement::ForgetFieldSet(nsIContent* aFieldset) {
|
||||
if (IsFormAssociatedElement() && GetFieldSetInternal() == aFieldset) {
|
||||
MOZ_DIAGNOSTIC_ASSERT(IsFormAssociatedElement());
|
||||
if (GetFieldSetInternal() == aFieldset) {
|
||||
SetFieldSetInternal(nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user