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:
@@ -939,7 +939,7 @@ void HTMLInputElement::Shutdown() {
|
||||
HTMLInputElement::HTMLInputElement(
|
||||
already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo,
|
||||
FromParser aFromParser, FromClone aFromClone)
|
||||
: nsGenericHTMLFormElementWithState(std::move(aNodeInfo), aFromParser,
|
||||
: nsGenericHTMLFormElementWithState(std::move(aNodeInfo),
|
||||
kInputDefaultType->value),
|
||||
mAutocompleteAttrState(nsContentUtils::eAutocompleteAttrState_Unknown),
|
||||
mAutocompleteInfoState(nsContentUtils::eAutocompleteAttrState_Unknown),
|
||||
@@ -5894,8 +5894,9 @@ void HTMLInputElement::DoneCreatingElement() {
|
||||
// Restore state as needed. Note that disabled state applies to all control
|
||||
// types.
|
||||
//
|
||||
GenerateStateKey();
|
||||
bool restoredCheckedState = !mInhibitRestoration && RestoreFormControlState();
|
||||
bool restoredCheckedState = !mInhibitRestoration &&
|
||||
NS_SUCCEEDED(GenerateStateKey()) &&
|
||||
RestoreFormControlState();
|
||||
|
||||
//
|
||||
// If restore does not occur, we initialize .checked using the CHECKED
|
||||
|
||||
Reference in New Issue
Block a user