Bug 1776896 - Clear mLastInteractiveValue when releasing TextControlState objects.

Differential Revision: https://phabricator.services.mozilla.com/D150487
This commit is contained in:
Emilio Cobos Álvarez
2022-06-28 17:20:10 +00:00
parent cf97fa0817
commit 79db059f04

View File

@@ -1493,6 +1493,7 @@ void TextControlState::DeleteOrCacheForReuse() {
// Prepare for reuse, unlink and release any refcountable objects.
UnlinkInternal();
mValue.SetIsVoid(true);
mLastInteractiveValue.SetIsVoid(true);
mTextCtrlElement = nullptr;
// Put this instance to the cache. Note that now, the array may be full,