Bug 1553705 - Make GenerateStateKey() infallible. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D32258
This commit is contained in:
@@ -5891,9 +5891,11 @@ void HTMLInputElement::DoneCreatingElement() {
|
||||
// Restore state as needed. Note that disabled state applies to all control
|
||||
// types.
|
||||
//
|
||||
bool restoredCheckedState = !mInhibitRestoration &&
|
||||
NS_SUCCEEDED(GenerateStateKey()) &&
|
||||
RestoreFormControlState();
|
||||
bool restoredCheckedState = false;
|
||||
if (!mInhibitRestoration) {
|
||||
GenerateStateKey();
|
||||
restoredCheckedState = RestoreFormControlState();
|
||||
}
|
||||
|
||||
//
|
||||
// If restore does not occur, we initialize .checked using the CHECKED
|
||||
|
||||
Reference in New Issue
Block a user