зеркало из https://github.com/mozilla/gecko-dev.git
fixing crashing popups on Windows. Smoketest blocker. Simple null check, nsPIDOMWindow QI result wasn't checked. Not sure why this fails suddenly, I would think everyone shoudl be implementing nsPIDOMWindow.... r=pinkerton
This commit is contained in:
Родитель
87373a21f6
Коммит
c6087db637
|
@ -2318,8 +2318,9 @@ nsEventStateManager::SendFocusBlur(nsIPresContext* aPresContext, nsIContent *aCo
|
|||
mDocument->GetScriptGlobalObject(getter_AddRefs(newGlobal));
|
||||
nsCOMPtr<nsPIDOMWindow> newWindow = do_QueryInterface(newGlobal);
|
||||
nsCOMPtr<nsPIDOMWindow> oldWindow = do_QueryInterface(oldGlobal);
|
||||
|
||||
if(newWindow)
|
||||
newWindow->GetRootCommandDispatcher(mDocument, getter_AddRefs(newCommandDispatcher));
|
||||
if(oldWindow)
|
||||
oldWindow->GetRootCommandDispatcher(gLastFocusedDocument, getter_AddRefs(oldCommandDispatcher));
|
||||
if(oldCommandDispatcher && oldCommandDispatcher != newCommandDispatcher)
|
||||
oldCommandDispatcher->SetSuppressFocus(PR_TRUE);
|
||||
|
|
|
@ -2318,8 +2318,9 @@ nsEventStateManager::SendFocusBlur(nsIPresContext* aPresContext, nsIContent *aCo
|
|||
mDocument->GetScriptGlobalObject(getter_AddRefs(newGlobal));
|
||||
nsCOMPtr<nsPIDOMWindow> newWindow = do_QueryInterface(newGlobal);
|
||||
nsCOMPtr<nsPIDOMWindow> oldWindow = do_QueryInterface(oldGlobal);
|
||||
|
||||
if(newWindow)
|
||||
newWindow->GetRootCommandDispatcher(mDocument, getter_AddRefs(newCommandDispatcher));
|
||||
if(oldWindow)
|
||||
oldWindow->GetRootCommandDispatcher(gLastFocusedDocument, getter_AddRefs(oldCommandDispatcher));
|
||||
if(oldCommandDispatcher && oldCommandDispatcher != newCommandDispatcher)
|
||||
oldCommandDispatcher->SetSuppressFocus(PR_TRUE);
|
||||
|
|
Загрузка…
Ссылка в новой задаче