fune/editor
Masayuki Nakano b6c7be1c68 Bug 1789344 - Make SelectionState::DidMoveNode track DOM points having pointed the moved content correctly r=m_kato
When selection is `abc<b>[def</b>]ghi`, `insertParagraph` command will delete
the `<b>` element first, then, `Selection` becomes `abc{}ghi`.  Then,
`HTMLEditor::InsertParagraphSeparatorAsSubAction` wraps all of the line in
the default paragraph, `<div>`, with
`HTMLEditor::FormatBlockContainerWithTransaction` (although this is incompatible
behavior with the other browsers).  At this time, new `<div>` is inserted before
the first text node and then, move the text nodes into the new `<div>`.

However, `RangeUpdater::DidMoveNode` just slides the offsets if containers of
registered DOM points are the ex-parent of the moving nodes.  Therefore, the
tracked selection range in `HTMLEditor::FormatBlockContainerWithTransaction`
become `<div></div>abc{}def`, then, `<div>abcdef</div>{}`, but the expected
behavior is of course, `<div>abc{}def</div>`, then, split the new `<div>`.

So the problem is, `DidMoveNode` assumes that DOM points won't point the moving
content node.  If the node is pointed, it should keep pointing in the new
parent.

Note that the expectations of new tests are based on Chrome, therefore, the
new known failures are incompatible with Chrome.

Differential Revision: https://phabricator.services.mozilla.com/D156798
2022-09-12 23:53:37 +00:00
..
composer Bug 1782008 - Remove now unnecessary .eslintrc.js files. r=webcompat-reviewers,extension-reviewers,media-playback-reviewers,pip-reviewers,denschub,rpl,alwu,mossop 2022-08-03 11:16:20 +00:00
docs
libeditor Bug 1789344 - Make SelectionState::DidMoveNode track DOM points having pointed the moved content correctly r=m_kato 2022-09-12 23:53:37 +00:00
reftests Bug 1761160: Disable spellechecking in the textarea for the blur-focus test. r=masayuki 2022-06-25 18:45:09 +00:00
spellchecker Bug 1779846 - Remove an unneeded if-statement in TextServicesDocument::OffsetEntryArray::FindWordRange(). r=masayuki 2022-09-02 18:52:36 +00:00
txmgr Bug 1767876 - part 3: Get rid of nsITransactionListener interface r=m_kato 2022-05-09 12:13:11 +00:00
AsyncSpellCheckTestHelper.jsm
moz.build Bug 1769128 - Enable '-ftrivial-auto-var-init=pattern' in editor. r=glandium 2022-05-26 06:15:36 +00:00
nsIDocumentStateListener.idl
nsIEditActionListener.idl
nsIEditor.idl Bug 1764684 - part 2: Make editor use methods of EditorBase to collapse Selection r=m_kato 2022-04-20 14:36:52 +00:00
nsIEditorMailSupport.idl Bug 1768057 - Make nsIEditorMailSupport::insertTextWithQuotations available to JS callers. r=masayuki 2022-05-11 14:49:29 +00:00
nsIEditorSpellCheck.idl
nsIHTMLAbsPosEditor.idl
nsIHTMLEditor.idl
nsIHTMLInlineTableEditor.idl
nsIHTMLObjectResizer.idl
nsITableEditor.idl Bug 1730442 - part 1: Make all nsITableEditor features flush pending layout at start to handle their jobs r=m_kato 2022-05-20 07:39:51 +00:00