зеркало из https://github.com/mozilla/gecko-dev.git
adding null check to prevent a few crashers on windows and linux that I introduced (exposed new code path). r=bryner
This commit is contained in:
Родитель
63234a162b
Коммит
2d4bb8c980
|
@ -453,7 +453,8 @@ nsEventStateManager::PreHandleEvent(nsIPresContext* aPresContext,
|
|||
}
|
||||
|
||||
// Focus the DOM window.
|
||||
focusedWindow->Focus();
|
||||
if(focusedWindow)
|
||||
focusedWindow->Focus();
|
||||
|
||||
if (focusedElement) {
|
||||
nsCOMPtr<nsIContent> focusContent = do_QueryInterface(focusedElement);
|
||||
|
|
|
@ -453,7 +453,8 @@ nsEventStateManager::PreHandleEvent(nsIPresContext* aPresContext,
|
|||
}
|
||||
|
||||
// Focus the DOM window.
|
||||
focusedWindow->Focus();
|
||||
if(focusedWindow)
|
||||
focusedWindow->Focus();
|
||||
|
||||
if (focusedElement) {
|
||||
nsCOMPtr<nsIContent> focusContent = do_QueryInterface(focusedElement);
|
||||
|
|
Загрузка…
Ссылка в новой задаче