зеркало из https://github.com/mozilla/pjs.git
Camino only - Bug 396559: Support window.blur() (missed file from first check-in). r/sr=pink
This commit is contained in:
Родитель
22432e8c12
Коммит
a16f408d8f
|
@ -400,6 +400,14 @@ CHBrowserListener::ExitModalEventLoop(nsresult aStatus)
|
|||
NS_IMETHODIMP
|
||||
CHBrowserListener::Blur()
|
||||
{
|
||||
// don't use -nativeWindow here so background tabs can't change focus
|
||||
NSWindow* window = [mView window];
|
||||
if (!window)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
if ([window isVisible])
|
||||
[mContainer sendBrowserWindowToBack];
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче