mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
c7936919a5
GitLab's comment calls scrollTop on input event handler. The scollTop may cause reflow. When causing reflow, editor is destroyed and initialized again. Then nsTextEditorState will set current value to editor. But this is failure. By bug 1465702, selection is cached in edit action. When initializing editor, selection controller is updated, so selection into cache becomes invalid. It means that all selection methods will return error since document is different. So we should update selection cache when initializing editor. Also, I cannot create test case for this situation since we have to cause reflow in input and/or composition event. Do you have any idea? Differential Revision: https://phabricator.services.mozilla.com/D16944 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
composer | ||
libeditor | ||
reftests | ||
spellchecker | ||
txmgr | ||
AsyncSpellCheckTestHelper.jsm | ||
moz.build | ||
nsIDocumentStateListener.idl | ||
nsIEditActionListener.idl | ||
nsIEditor.idl | ||
nsIEditorMailSupport.idl | ||
nsIEditorObserver.idl | ||
nsIEditorSpellCheck.idl | ||
nsIEditorStyleSheets.idl | ||
nsIHTMLAbsPosEditor.idl | ||
nsIHTMLEditor.idl | ||
nsIHTMLInlineTableEditor.idl | ||
nsIHTMLObjectResizer.idl | ||
nsIPlaintextEditor.idl | ||
nsITableEditor.idl | ||
nsIURIRefObject.idl |