gecko-dev/editor
Makoto Kato 91af9cea10 Bug 1424450 - Don't set selection on ClearStyle. r=masayuki
This crash is that HTMLEditor::ClearStyle returns nullptr for aNode even if
successful.

When current start node and offset isn't within ancestor limiter,
HTMLEditor::ClearStyle will return nullptr for split node even if successful.
Because SplitNodeTransation returns error since Selection::Collapse is failed.
Then, SplitNodeDeep in HTMLEditor::SplitStyleAvovePoint returns error.  But
this error is ignored.  So node will becomes null even if successful.

CreateStyleForInsertText will set new selection when there is split node, so
we shouldn't set selection on ClearStyle.

Also, InsertNodeTransation is ignored for error when Collapse is failed, but
SplitNodeTransaction isn't ignored.  We should create a rule when collapse is
failed on transaction.

And at feature, we shouldn't set selection in CreateStyleForInsertText, and
then, it should return new insertion point for InsertText instead of setting
new selection.

MozReview-Commit-ID: BRKWLqTfrvC

--HG--
extra : rebase_source : 2cd025e9d40688f643a843b39512dccc2bb7c4a2
2018-04-18 16:13:24 +09:00
..
composer Bug 1451972 - Remove more nsIDOMDocument usages from editor. r=masayuki 2018-04-06 14:53:05 +09:00
libeditor Bug 1424450 - Don't set selection on ClearStyle. r=masayuki 2018-04-18 16:13:24 +09:00
reftests Bug 1429573 - Use input[type=number] in textbox[type=number] implementation. r=Paolo,surkov 2018-02-09 21:54:36 +00:00
spellchecker Bug 1444991 - Part 5: Make some XPCOM methods more strongly typed, r=bz 2018-04-17 19:21:05 -04:00
txmgr Bug 1447924 - part 7: Implement AddTransactionListener() and RemoveTransactionListener() in EditorBase and TransactionManager r=m_kato 2018-03-23 18:55:56 +09:00
AsyncSpellCheckTestHelper.jsm Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
moz.build Bug 1442500 - Part 1. Rename editor/txtsvc to editor/spellchecker. r=masayuki 2018-03-02 12:55:26 +09:00
nsEditorCID.h
nsIDocumentStateListener.idl
nsIEditActionListener.idl Bug 1444991 - Part 5: Make some XPCOM methods more strongly typed, r=bz 2018-04-17 19:21:05 -04:00
nsIEditor.idl Bug 1448780 - Get rid of nsIEditor.numberOfUndoItems and nsIEditor.numberOfRedoItems r=m_kato 2018-03-26 18:11:06 +09:00
nsIEditorMailSupport.idl
nsIEditorObserver.idl Bug 1432528 - part 4: Remove nsIEditorObserver::BeforeEditAction() and nsIEditorObserver::CancelEditAction() because nobody implements them r=m_kato 2018-01-24 14:31:29 +09:00
nsIEditorSpellCheck.idl Bug 1424677 - Don't use wstring for nsIEditorSpellCheck. r=masayuki 2017-12-13 04:14:27 -06:00
nsIEditorStyleSheets.idl
nsIEditorUtils.idl
nsIHTMLAbsPosEditor.idl Bug 1433849 - Remove unused methods in nsIHTMLAbsPosEditor. r=masayuki 2018-02-01 10:55:25 +09:00
nsIHTMLEditor.idl Bug 1432944 part 2. Make nsIHTMLEditor.getSelectedElement return nsISupports. r=m_kato 2018-01-29 23:27:59 -05:00
nsIHTMLInlineTableEditor.idl Bug 1425547 - Remove unused methods from nsIHTMLInlineTableEditor. r=masayuki 2018-01-19 16:41:41 +09:00
nsIHTMLObjectResizer.idl Bug 1425652 - mosueDown, mouseUp and mouseMove should be removed from nsIHTMLObjectResizer. r=masayuki 2018-01-10 12:47:16 +09:00
nsIPlaintextEditor.idl Bug 1439812 - Move noscript methods of nsIPlainTextEditor to TextEditor. r=masayuki 2018-02-21 13:21:57 +09:00
nsITableEditor.idl
nsIURIRefObject.idl