gecko-dev/editor
Masayuki Nakano 00b602a0f0 Bug 1627673 - Do null-check the result of DragEvent::GetDataTransfer() in EditorEventListener` r=smaug
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
2020-11-09 23:39:10 +00:00
..
composer Bug 1654103: Standardize on Black for Python code in mozilla-central. 2020-10-26 18:34:53 +00:00
libeditor Bug 1627673 - Do null-check the result of DragEvent::GetDataTransfer() in EditorEventListener` r=smaug 2020-11-09 23:39:10 +00:00
reftests Bug 312971 - Unprefix -moz-read-write / -moz-read-only. r=edgar 2020-05-14 16:46:08 +00:00
spellchecker Bug 1654103: Standardize on Black for Python code in mozilla-central. 2020-10-26 18:34:53 +00:00
txmgr Bug 1654103: Standardize on Black for Python code in mozilla-central. 2020-10-26 18:34:53 +00:00
AsyncSpellCheckTestHelper.jsm
moz.build Bug 1654103: Standardize on Black for Python code in mozilla-central. 2020-10-26 18:34:53 +00:00
nsIDocumentStateListener.idl
nsIEditActionListener.idl Bug 1656432 - part 3: Get rid of nsIEditActionListener::WillDeleteSelection() r=m_kato 2020-08-04 15:01:18 +00:00
nsIEditor.idl Bug 1623918 - part 2: Mark nsINode::GetSelectionRootContent() and its root callers as MOZ_CAN_RUN_SCRIPT as far as possible r=smaug 2020-10-09 02:37:47 +00:00
nsIEditorMailSupport.idl
nsIEditorObserver.idl
nsIEditorSpellCheck.idl
nsIHTMLAbsPosEditor.idl
nsIHTMLEditor.idl Bug 1623918 - part 2: Mark nsINode::GetSelectionRootContent() and its root callers as MOZ_CAN_RUN_SCRIPT as far as possible r=smaug 2020-10-09 02:37:47 +00:00
nsIHTMLInlineTableEditor.idl
nsIHTMLObjectResizer.idl
nsITableEditor.idl Bug 1671556 - part 2: Replace nsITableEditor.getFirstSelectedCell() and nsITableEditor.getNextSelectedCell() with nsITableEditor.getSelectedCells() r=m_kato 2020-10-24 04:12:38 +00:00