зеркало из https://github.com/mozilla/pjs.git
Fix bug 319257: make sure we bring the browser window to the front when creating new tabs from external apps, if another window (like Downloads) is frontmost.
This commit is contained in:
Родитель
5ae73894d2
Коммит
f3600aa101
|
@ -1119,6 +1119,9 @@ Otherwise, we return the URL we originally got. Right now this supports .url and
|
|||
[controller openNewTabWithURL:inURLString referrer:aReferrer loadInBackground:loadInBackground allowPopups:NO];
|
||||
else
|
||||
[controller openNewWindowWithURL:inURLString referrer:aReferrer loadInBackground:loadInBackground allowPopups:NO];
|
||||
|
||||
if (!loadInBackground)
|
||||
[[controller window] makeKeyAndOrderFront:nil];
|
||||
}
|
||||
else
|
||||
controller = [self openBrowserWindowWithURL:inURLString andReferrer:aReferrer behind:nil allowPopups:NO];
|
||||
|
|
Загрузка…
Ссылка в новой задаче