Backed out 2 changesets (bug 1553705) for causing Bug1562142 . CLOSED TREE
Backed out changeset fbb26a04ec1f (bug 1553705) Backed out changeset dd6e7c0970d5 (bug 1553705)
This commit is contained in:
@@ -54,7 +54,7 @@ static const nsAttrValue::EnumTable* kButtonDefaultType = &kButtonTypeTable[2];
|
||||
HTMLButtonElement::HTMLButtonElement(
|
||||
already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo,
|
||||
FromParser aFromParser)
|
||||
: nsGenericHTMLFormElementWithState(std::move(aNodeInfo), aFromParser,
|
||||
: nsGenericHTMLFormElementWithState(std::move(aNodeInfo),
|
||||
kButtonDefaultType->value),
|
||||
mDisabledChanged(false),
|
||||
mInInternalActivate(false),
|
||||
@@ -345,9 +345,11 @@ HTMLButtonElement::SubmitNamesValues(HTMLFormSubmission* aFormSubmission) {
|
||||
}
|
||||
|
||||
void HTMLButtonElement::DoneCreatingElement() {
|
||||
GenerateStateKey();
|
||||
if (!mInhibitStateRestoration) {
|
||||
RestoreFormControlState();
|
||||
nsresult rv = GenerateStateKey();
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
RestoreFormControlState();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user