зеркало из https://github.com/mozilla/gecko-dev.git
023906f104
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 |
||
---|---|---|
.. | ||
test | ||
.eslintrc.js | ||
FormAutoComplete.jsm | ||
FormHistory.jsm | ||
FormHistoryStartup.jsm | ||
FormSubmitChild.jsm | ||
InputListAutoComplete.jsm | ||
components.conf | ||
moz.build | ||
nsFormAutoCompleteResult.jsm | ||
nsFormFillController.cpp | ||
nsFormFillController.h | ||
nsIFormAutoComplete.idl | ||
nsIFormFillController.idl | ||
nsIInputListAutoComplete.idl | ||
towel |