Bug 1553705 - Make GenerateStateKey() infallible. r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D32258
This commit is contained in:
Cameron McCormack
2019-06-26 21:44:03 +00:00
parent f4cf8185db
commit a7dd303c43
12 changed files with 43 additions and 60 deletions

View File

@@ -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