Bug 1244582: Add back in a null check that was accidentally removed. r=smaug

This commit is contained in:
Kyle Huey 2016-02-01 09:44:52 -08:00
parent 7f8b725e06
commit 6804a49459

View File

@ -2006,6 +2006,7 @@ EventStateManager::GetContentViewer(nsIContentViewer** aCv)
nsCOMPtr<mozIDOMWindowProxy> focusedWindow;
fm->GetFocusedWindow(getter_AddRefs(focusedWindow));
if (!focusedWindow) return NS_ERROR_FAILURE;
auto* ourWindow = nsPIDOMWindowOuter::From(focusedWindow);