зеркало из https://github.com/mozilla/gecko-dev.git
e851a155cb
The ancestor limiter is set by focus event handler of editor. But window that is run script has no focus, this event isn't fired by addRange etc. Some execCommand's commands such as 'forwardDelete' uses WillDeleteSelection then selection for deletion is set by selection controller (in TextEditor::ExtendSelectionForDelete). So, due to no ancestor limiter, caret (and any for delete commands such as CharacterExtendForDelete) can move to out of editor's root. So we should set ancestor limiter if nothing. If focus event is received by user interaction etc, limiter will be set again. Differential Revision: https://phabricator.services.mozilla.com/D6374 --HG-- extra : rebase_source : 240c3bc09b37d46d1ce3245bcca55cafc59454c5 |
||
---|---|---|
.. | ||
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 |