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:
jaggernaut%netscape.com 2001-07-20 22:33:49 +00:00
Родитель 52a631c3bc
Коммит cdb713089c
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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();