322044 When Camino is hidden, invoking via Service does not respect external app pref. 333974 Same thing when clicking links in other applications. Use non-visible windows when the app is hidden. r=smfr

This commit is contained in:
mark%moxienet.com 2006-04-26 15:07:33 +00:00
Родитель ddc8d38608
Коммит 3885b7b78c
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -999,7 +999,7 @@ Otherwise, we return the URL we originally got. Right now this supports .url and
// an empty chrome mask, or ones with a toolbar, status bar, and resize control
// to be real top-level browser windows for purposes of saving size and
// loading urls in. Others are popups and are transient.
if (([curWindow isVisible] || [curWindow isMiniaturized]) &&
if (([curWindow isVisible] || [curWindow isMiniaturized] || [NSApp isHidden]) &&
[[curWindow windowController] isMemberOfClass:[BrowserWindowController class]] &&
[[curWindow windowController] hasFullBrowserChrome])
{
@ -1024,7 +1024,7 @@ Otherwise, we return the URL we originally got. Right now this supports .url and
// an empty chrome mask, or ones with a toolbar, status bar, and resize control
// to be real top-level browser windows for purposes of saving size and
// loading urls in. Others are popups and are transient.
if (([curWindow isVisible] || [curWindow isMiniaturized]) &&
if (([curWindow isVisible] || [curWindow isMiniaturized] || [NSApp isHidden]) &&
[[curWindow windowController] isMemberOfClass:[BrowserWindowController class]] &&
[[curWindow windowController] hasFullBrowserChrome])
{