зеркало из https://github.com/mozilla/gecko-dev.git
e4b33674ec
While initializing `HTMLEditor` for `designMode`, `blur` event for the previously focused element will be fired after `HTMLEditor` initialization because of the script blocker in `Document::EditingStateChanged()`: https://searchfox.org/mozilla-central/rev/c0f286b1f541c675bbe052b21bdefa80d150ec35/dom/base/Document.cpp#5878,5891,5923 This causes `EditorEventListener::Blur()` calling `EditorBase::FinalizeSelection()` to make the editor stop handling selection. Therefore, if the design mode is turned on from an event listener run by a user operation cannot make the caret visible. This patch makes the `Blur()` ignore `blur` events whose target is element in the design mode since the target of `blur` events should be handled in the design mode is always the DOM window or the document node. Differential Revision: https://phabricator.services.mozilla.com/D117268 |
||
---|---|---|
.. | ||
composer | ||
docs | ||
libeditor | ||
reftests | ||
spellchecker | ||
txmgr | ||
AsyncSpellCheckTestHelper.jsm | ||
moz.build | ||
nsIDocumentStateListener.idl | ||
nsIEditActionListener.idl | ||
nsIEditor.idl | ||
nsIEditorMailSupport.idl | ||
nsIEditorObserver.idl | ||
nsIEditorSpellCheck.idl | ||
nsIHTMLAbsPosEditor.idl | ||
nsIHTMLEditor.idl | ||
nsIHTMLInlineTableEditor.idl | ||
nsIHTMLObjectResizer.idl | ||
nsITableEditor.idl |