зеркало из https://github.com/mozilla/gecko-dev.git
00b602a0f0
I guess that `DataTransfer::HasType()` is inlined in the opt builds and actually crashed in `EditorEventListener::DragEventHasSupportingData()` at accessing `aDragEvent->GetDataTransfer()` result without null-check because `DataTransfer::mItems` is set to `nullptr` only by the cycle collector, but it does not make sense to think that it occurs the STR in bug 1627673 comment 3. Therefore, this patch adds null-checks in `EditorEventListener::DragEventHasSupportingData()`. I have no idea how to test this with automated tests. Differential Revision: https://phabricator.services.mozilla.com/D96310 |
||
---|---|---|
.. | ||
composer | ||
libeditor | ||
reftests | ||
spellchecker | ||
txmgr | ||
AsyncSpellCheckTestHelper.jsm | ||
moz.build | ||
nsIDocumentStateListener.idl | ||
nsIEditActionListener.idl | ||
nsIEditor.idl | ||
nsIEditorMailSupport.idl | ||
nsIEditorObserver.idl | ||
nsIEditorSpellCheck.idl | ||
nsIHTMLAbsPosEditor.idl | ||
nsIHTMLEditor.idl | ||
nsIHTMLInlineTableEditor.idl | ||
nsIHTMLObjectResizer.idl | ||
nsITableEditor.idl |