Bug 1553705 - Make GenerateStateKey() infallible. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D32258
This commit is contained in:
@@ -518,10 +518,8 @@ void HTMLTextAreaElement::DoneAddingChildren(bool aHaveNotified) {
|
||||
}
|
||||
|
||||
if (!mInhibitStateRestoration) {
|
||||
nsresult rv = GenerateStateKey();
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
RestoreFormControlState();
|
||||
}
|
||||
GenerateStateKey();
|
||||
RestoreFormControlState();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user