mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
c6ffcedbf2
Oddly, `WSRunObject::InsertText()` returns `NS_OK` even when `HTMLEditor::InsertTextWithTransaction()` returns error. However, it fails if insertion point is not editable like `<noscript>` element. In such case, `aPointAfterInsertedString` isn't modified and its caller, `HTMLEditRules::WillInsertText()` keep handling inserting remaining text with non-positioned `EditorDOMPoint`. Therefore, at the next time, `WSRunObject` fails to do anything since it requires positioned `EditorDOMPoint`. For making uplift safer, this patch makes `WSRunObject::InsertText()` set `aPointAfterInsertedString` by itself when `HTMLEditor::InsertTextWithTransaction()` returns error. Differential Revision: https://phabricator.services.mozilla.com/D32131 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
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 |