Bug 1553705 - Make GenerateStateKey() infallible. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D32258
This commit is contained in:
@@ -1113,10 +1113,8 @@ void HTMLSelectElement::DoneAddingChildren(bool aHaveNotified) {
|
||||
}
|
||||
|
||||
if (!mInhibitStateRestoration) {
|
||||
nsresult rv = GenerateStateKey();
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
RestoreFormControlState();
|
||||
}
|
||||
GenerateStateKey();
|
||||
RestoreFormControlState();
|
||||
}
|
||||
|
||||
// Now that we're done, select something (if it's a single select something
|
||||
|
||||
Reference in New Issue
Block a user