gecko-dev/editor
Masayuki Nakano 6449c8aac8 Bug 1318312 part.3 Selection should move focus at every selection change when it's called by JS r=smaug
Selection may be changed by methods of Selection or methods of Range retrieved by Selection.getRangeAt().  Selection::NotifySelectionListeners() is called after every selection change of each of them, so, this method must be a good point to move focus.

If new common ancestor of all ranges is editable and in an editing host, we should move focus to it.  Otherwise, if an editing host has focus but new common ancestor is not editable, we should move focus from the editing host.

For consistency with the other browsers, this patch doesn't move focus to other focusable element.

MozReview-Commit-ID: 6sNsuzwqECX

--HG--
extra : rebase_source : 9ba52ab0bd1249abded81019847c85182ca1926e
2017-03-14 10:36:21 +09:00
..
composer Bug 1345253 - Use element.firstChild.remove() instead of element.removeChild(element.firstChild), r=jaws. 2017-03-08 10:17:52 +01:00
libeditor Bug 1318312 part.3 Selection should move focus at every selection change when it's called by JS r=smaug 2017-03-14 10:36:21 +09:00
reftests Bug 1342934 - Allow an assertion in non-e10s mode as well, if webrender is enabled. r=rhunt 2017-02-27 11:15:11 -05:00
txmgr Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws. 2017-01-17 11:50:25 +01:00
txtsvc Bug 1311606 Rename |result| of nsresult variants to |rv| in editor r=smaug 2016-10-25 00:43:49 +09:00
AsyncSpellCheckTestHelper.jsm Bug 1334156 - script-generated patch to replace .ownerDocument.defaultView with .ownerGlobal, r=jaws. 2017-01-27 10:51:03 +01:00
moz.build Bug 1330402 - add BUG_COMPONENT to editor/* files. r=m_kato 2017-01-13 08:40:24 -05:00
nsEditorCID.h
nsIContentFilter.idl
nsIDocumentStateListener.idl
nsIEditActionListener.idl
nsIEditor.idl Bug 564411 Move all methods/attributes of nsIEditorIMESupport to nsIEditor r=smaug 2016-12-20 21:47:31 +09:00
nsIEditorIMESupport.idl Bug 564411 Move all methods/attributes of nsIEditorIMESupport to nsIEditor r=smaug 2016-12-20 21:47:31 +09:00
nsIEditorMailSupport.idl Bug 1272893 - Remove nsISupportsArray from GetEmbeddedObjects() in editor. r=masayuki 2016-09-15 04:33:00 +02:00
nsIEditorObserver.idl
nsIEditorSpellCheck.idl
nsIEditorStyleSheets.idl
nsIEditorUtils.idl Bug 1259517 - Make dropping images in editors work in e10s. r=baku 2016-06-21 15:17:37 -07:00
nsIHTMLAbsPosEditor.idl
nsIHTMLEditor.idl Bug 1312991 Get rid of nsIHTMLEditor::SetDocumentTitle() and mozilla::SetDocumentTitleTransaction r=smaug 2016-12-26 17:46:23 +09:00
nsIHTMLInlineTableEditor.idl
nsIHTMLObjectResizeListener.idl
nsIHTMLObjectResizer.idl
nsIPlaintextEditor.idl
nsITableEditor.idl
nsIURIRefObject.idl
nsPIEditorTransaction.idl