зеркало из https://github.com/mozilla/pjs.git
Fix for 83642. r=jag, sr=blake, a=tor
This commit is contained in:
Родитель
9a8cefc8f5
Коммит
96c68a8c35
|
@ -2412,10 +2412,8 @@ static void CheckForFocus(nsPIDOMWindow* aOurWindow, nsIFocusController* aFocusC
|
|||
if (domWindow == focusedWindow) {
|
||||
PRBool active;
|
||||
aFocusController->GetActive(&active);
|
||||
aFocusController->SetFocusedElement(nsnull);
|
||||
if(active) {
|
||||
// We need to restore focus and make sure we null
|
||||
// out the focused element.
|
||||
// We need to restore focus to the window.
|
||||
domWindow->Focus();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2412,10 +2412,8 @@ static void CheckForFocus(nsPIDOMWindow* aOurWindow, nsIFocusController* aFocusC
|
|||
if (domWindow == focusedWindow) {
|
||||
PRBool active;
|
||||
aFocusController->GetActive(&active);
|
||||
aFocusController->SetFocusedElement(nsnull);
|
||||
if(active) {
|
||||
// We need to restore focus and make sure we null
|
||||
// out the focused element.
|
||||
// We need to restore focus to the window.
|
||||
domWindow->Focus();
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче