Bug 258285. Findbar coming up when it shouldn't (textareas/textfields). r=mats, sr=bryner, a=asa
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@177875 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -483,11 +483,15 @@ nsWebShellWindow::HandleEvent(nsGUIEvent *aEvent)
|
||||
// on eventWindow. -bryner
|
||||
nsCOMPtr<nsIXULWindow> kungFuDeathGrip(eventWindow);
|
||||
|
||||
focusController->SetSuppressFocus(PR_TRUE, "Activation Suppression");
|
||||
|
||||
nsCOMPtr<nsIDOMWindowInternal> domWindow =
|
||||
do_QueryInterface(piWin);
|
||||
|
||||
if (domWindow == focusedWindow) {
|
||||
break; // Already focused
|
||||
}
|
||||
|
||||
focusController->SetSuppressFocus(PR_TRUE, "Activation Suppression");
|
||||
|
||||
NS_ASSERTION(domWindow,
|
||||
"windows must support nsIDOMWindowInternal");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user