Bug 1308877 - prevent null pointer dereference in PresShell::HandleEvent. r=smaug

MozReview-Commit-ID: E4tdcyUCxpU

--HG--
extra : rebase_source : 5bde36c19aba84735800ca8eed76f3350851fa8a
This commit is contained in:
Andi-Bogdan Postelnicu 2016-10-10 13:44:03 +03:00
Родитель 1bb22fcee7
Коммит 29e18f24c8
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -7659,7 +7659,7 @@ PresShell::HandleEvent(nsIFrame* aFrame,
frame = nullptr;
}
// Implicit pointer capture for touch
if (sPointerEventImplicitCapture &&
if (frame && sPointerEventImplicitCapture &&
pointerEvent->mMessage == ePointerDown &&
pointerEvent->inputSource == nsIDOMMouseEvent::MOZ_SOURCE_TOUCH) {
nsCOMPtr<nsIContent> targetContent;