Bug 1881457 - Keep saving mFocusedValue. r=smaug

This deletion was an oversight of the regressing bug. Kind of
embarrassing we didn't have a test for it...

Differential Revision: https://phabricator.services.mozilla.com/D202449
This commit is contained in:
Emilio Cobos Álvarez
2024-02-22 16:20:50 +00:00
parent 8d3d6c8aae
commit 4fead691ec
3 changed files with 66 additions and 1 deletions

View File

@@ -481,7 +481,9 @@ nsresult HTMLTextAreaElement::PostHandleEvent(EventChainPostVisitor& aVisitor) {
if (aVisitor.mEvent->mMessage == eFormSelect) {
mHandlingSelect = false;
}
if (aVisitor.mEvent->mMessage == eFocus) {
GetValueInternal(mFocusedValue, true);
}
return NS_OK;
}