gecko-dev/editor
Masayuki Nakano 46be890959 Bug 1623913 - Make `WSRunObject::PrepareToDeleteRangePriv()` invalidate child of `mScanStartPoint` before reusing it r=m_kato
I give up to write a clean patch for this bug with current design.  The trigger
is indeed bug 1618089, but this is a hidden regression of bug 1530649.

Starting from bug 1530649, `WSRunObject` started to use `EditorDOMPoint` for
storing the specified point.  And it may store (or only store) child node.
Therefore, if it points a text node and it's removed by
`WSRunObject::DeleteRange()`, the point becomes invalid even if its offset
is still valid.  Therefore, we should make `mStartScanPoint` and `mEndScanPoint`
forget their child before DOM tree change ideally, but it means that we need
to compute offset of the child every time before changing the DOM tree.  We
cannot accept this safest approach due to performance reason.

Therefore, this patch just invalidates `mStartScanPoint`'s child node only when
it's reused after the DOM tree is modified.

Differential Revision: https://phabricator.services.mozilla.com/D68048

--HG--
extra : moz-landing-system : lando
2020-03-26 05:53:22 +00:00
..
composer Bug 1623562 - Refactor allowPlugins to use BrowsingContext. r=nika 2020-03-20 04:53:43 +00:00
libeditor Bug 1623913 - Make `WSRunObject::PrepareToDeleteRangePriv()` invalidate child of `mScanStartPoint` before reusing it r=m_kato 2020-03-26 05:53:22 +00:00
reftests Bug 253870 - Make disabled form controls selectable. r=masayuki,MarcoZ 2020-03-19 13:18:16 +00:00
spellchecker Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop 2020-03-07 10:09:44 +00:00
txmgr Bug 1620504 - part 13: Clean up warnings in editor/txmgr r=m_kato 2020-03-10 13:59:36 +00:00
AsyncSpellCheckTestHelper.jsm
moz.build Bug 1540043 - part 3: Remove `nsIPlaintextEditor` interface r=m_kato 2020-02-01 04:38:13 +00:00
nsIDocumentStateListener.idl Bug 1612477 - part 2: Remove `nsIDocumentStateListener.NotifyDocumentCreated()` r=m_kato 2020-02-04 06:19:55 +00:00
nsIEditActionListener.idl
nsIEditor.idl Bug 253870 - Make disabled form controls selectable. r=masayuki,MarcoZ 2020-03-19 13:18:16 +00:00
nsIEditorMailSupport.idl
nsIEditorObserver.idl
nsIEditorSpellCheck.idl
nsIEditorStyleSheets.idl Bug 1611751 - Remove unused scriptable methods of `nsIHTMLEditor`, `nsIEditorStyleSheets` and `nsITableEditor` r=m_kato 2020-01-30 08:50:41 +00:00
nsIHTMLAbsPosEditor.idl
nsIHTMLEditor.idl Bug 1611751 - Remove unused scriptable methods of `nsIHTMLEditor`, `nsIEditorStyleSheets` and `nsITableEditor` r=m_kato 2020-01-30 08:50:41 +00:00
nsIHTMLInlineTableEditor.idl
nsIHTMLObjectResizer.idl
nsITableEditor.idl Bug 1615581: part 1) Rename `TableSelection` to `TableSelectionMode`. r=jfkthame 2020-02-18 12:28:45 +00:00