зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
1bb22fcee7
Коммит
29e18f24c8
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче