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

git-svn-id: svn://10.0.0.236/trunk@195442 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mark%moxienet.com
2006-04-26 15:07:33 +00:00
parent 94cdf050c2
commit 4390ea0644

View File

@@ -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])
{