Bug 1648944 - Part 2: Fire selectionchange at document from text controls r=masayuki,smaug

Differential Revision: https://phabricator.services.mozilla.com/D86701
This commit is contained in:
Kagami Sascha Rosylight
2021-07-20 08:59:47 +00:00
parent dff494f1a7
commit 3dc848256c
3 changed files with 26 additions and 18 deletions

View File

@@ -2106,7 +2106,7 @@ void TextControlState::SetSelectionRange(
if (IsSelectionCached() &&
StaticPrefs::dom_select_events_textcontrols_selectionchange_enabled()) {
asyncDispatcher = new AsyncEventDispatcher(
mTextCtrlElement, eSelectionChange, CanBubble::eNo);
mTextCtrlElement, eSelectionChange, CanBubble::eYes);
asyncDispatcher->PostDOMEvent();
}
}