зеркало из https://github.com/mozilla/gecko-dev.git
Bug 91571: Closing popup window from menu crashes Mac.
r=saari, sr=hyatt. Problem here was that the urlbar, which is hidden for a chrome-less dialog, got focussed which on Mac somehow results in a crash when you try to close the window. A nice side-effect of this fix is that accelerator keys now work again in popups without having to click in them first.
This commit is contained in:
Родитель
52a631c3bc
Коммит
cdb713089c
|
@ -355,7 +355,8 @@ function Startup()
|
|||
}
|
||||
|
||||
// Focus the content area if the caller instructed us to.
|
||||
if ("arguments" in window && window.arguments.length >= 3 && window.arguments[2] == true)
|
||||
if ("arguments" in window && window.arguments.length >= 3 && window.arguments[2] == true ||
|
||||
!window.locationbar.visible)
|
||||
_content.focus();
|
||||
else
|
||||
gURLBar.focus();
|
||||
|
|
Загрузка…
Ссылка в новой задаче