зеркало из https://github.com/mozilla/gecko-dev.git
Fix for 76746. r=saari, sr=waterson, a=asa
This commit is contained in:
Родитель
03fd8c94bb
Коммит
c60ed6c236
|
@ -442,7 +442,9 @@ nsEventStateManager::PreHandleEvent(nsIPresContext* aPresContext,
|
|||
// focused element in its focus memory, then restore the focus to those
|
||||
// objects.
|
||||
EnsureDocument(aPresContext);
|
||||
|
||||
#ifdef DEBUG_hyatt
|
||||
printf("ESM: GOT ACTIVATE.\n");
|
||||
#endif
|
||||
nsCOMPtr<nsIFocusController> focusController;
|
||||
nsCOMPtr<nsIDOMElement> focusedElement;
|
||||
nsCOMPtr<nsIDOMWindowInternal> focusedWindow;
|
||||
|
@ -459,6 +461,7 @@ nsEventStateManager::PreHandleEvent(nsIPresContext* aPresContext,
|
|||
focusController->GetFocusedElement(getter_AddRefs(focusedElement));
|
||||
|
||||
focusController->SetSuppressFocusScroll(PR_TRUE);
|
||||
focusController->SetActive(PR_TRUE);
|
||||
}
|
||||
|
||||
if (!focusedWindow) {
|
||||
|
@ -489,8 +492,6 @@ nsEventStateManager::PreHandleEvent(nsIPresContext* aPresContext,
|
|||
}
|
||||
|
||||
if (focusController) {
|
||||
focusController->SetActive(PR_TRUE);
|
||||
|
||||
PRBool isSuppressed;
|
||||
focusController->GetSuppressFocus(&isSuppressed);
|
||||
while(isSuppressed){
|
||||
|
|
Загрузка…
Ссылка в новой задаче