зеркало из https://github.com/mozilla/gecko-dev.git
98a833407e
TextEditor::DeleteSelectionAsAction() is called even if it's a part of edit action. For example, it's called to prepare for inserting text. For bug 1465702, editor itself and edit rules classes should not call public DeleteSelectionAsAction() directly. Therefore, this patch creates DeleteSelectionAsSubAction() for internal use. Note that this patch adds NS_ASSERTION() to detect wrong caller. However, it cannot distinguish if the call is valid, for example, it's allowed to call DeleteSelectionAsSelection() even if it's handling an edit action but the method is called via mutation event listener. So, we need to allow some assertions with some tests. But unfortunately, 1405747.html uses mutation event listener too many times (about 1,000 times) and the number of assertion isn't stable. Therefore, this patch makes the test stop using the mutation event listener 2nd time since I can reproduce the crash with ESR 52 at the 2nd time. MozReview-Commit-ID: 1TWaypmnoCC --HG-- extra : rebase_source : a6a4fb1cbcaf2ab6f10c5f3e7168a6bc0fcb02ed |
||
---|---|---|
.. | ||
composer | ||
libeditor | ||
reftests | ||
spellchecker | ||
txmgr | ||
AsyncSpellCheckTestHelper.jsm | ||
moz.build | ||
nsEditorCID.h | ||
nsIDocumentStateListener.idl | ||
nsIEditActionListener.idl | ||
nsIEditor.idl | ||
nsIEditorMailSupport.idl | ||
nsIEditorObserver.idl | ||
nsIEditorSpellCheck.idl | ||
nsIEditorStyleSheets.idl | ||
nsIEditorUtils.idl | ||
nsIHTMLAbsPosEditor.idl | ||
nsIHTMLEditor.idl | ||
nsIHTMLInlineTableEditor.idl | ||
nsIHTMLObjectResizer.idl | ||
nsIPlaintextEditor.idl | ||
nsITableEditor.idl | ||
nsIURIRefObject.idl |