gecko-dev/toolkit/components/satchel
Masayuki Nakano 023906f104 Bug 1584963 - Make `nsTextEditorState` not manage `TextInputListener` by itself when chrome script emulates user input r=m_kato
When `nsTextEditorState::SetValue()` is called with `eSetValue_BySetUserInput`,
we emulate user input.  I.e., keep using transaction manager of the editor,
events fired while handling user input should be fired.

Currently, `nsTextEditorState::SetValue()` suppresses multiple state handling
while setting value with calling `mTextListener->SettingValue(true)`.  This
is why `"input"` event listeners cannot retrieve the latest state of validation
if `inputType` is `"insertReplacementText"`.

This patch makes it keep managing `mTextListener` when setting the value
programatically.   Otherwise, i.e., it emulates user input, editor should
manage it from `EditorBase::NotifyEditorObservers()` instead so that this
patch makes it not managing `mTextListener` in such case.

Differential Revision: https://phabricator.services.mozilla.com/D49571

--HG--
extra : moz-landing-system : lando
2019-10-18 09:18:40 +00:00
..
test Bug 1584963 - Make `nsTextEditorState` not manage `TextInputListener` by itself when chrome script emulates user input r=m_kato 2019-10-18 09:18:40 +00:00
.eslintrc.js
FormAutoComplete.jsm Bug 1578683 Turn on ESLint rule prefer-boolean-length-check for toolkit and browser r=Standard8 2019-09-14 09:39:26 +00:00
FormHistory.jsm Bug 1579420 - Fix remaining ESLint no-async-promise-executor issues in browser/ and toolkit/. r=mossop 2019-09-16 17:26:58 +00:00
FormHistoryStartup.jsm Bug 1561435 - Format toolkit/components/, a=automatic-formatting 2019-07-05 11:14:05 +02:00
FormSubmitChild.jsm Bug 1561435 - Format toolkit/components/, a=automatic-formatting 2019-07-05 11:14:05 +02:00
InputListAutoComplete.jsm Bug 1578683 Turn on ESLint rule prefer-boolean-length-check for toolkit and browser r=Standard8 2019-09-14 09:39:26 +00:00
components.conf
moz.build Bug 1573836, make autocomplete component fission compatible, r=mak,MattN 2019-10-09 19:02:57 +00:00
nsFormAutoCompleteResult.jsm Bug 1561435 - Format toolkit/components/, a=automatic-formatting 2019-07-05 11:14:05 +02:00
nsFormFillController.cpp Bug 1573836, make autocomplete component fission compatible, r=mak,MattN 2019-10-09 19:02:57 +00:00
nsFormFillController.h Bug 1573836, make autocomplete component fission compatible, r=mak,MattN 2019-10-09 19:02:57 +00:00
nsIFormAutoComplete.idl
nsIFormFillController.idl Bug 1573836, make autocomplete component fission compatible, r=mak,MattN 2019-10-09 19:02:57 +00:00
nsIInputListAutoComplete.idl
towel