Quitting from Composer does not work correctly when in turbo (99318) and another non turbo-related quitting bug. r/sr=ben
This commit is contained in:
Родитель
adfbd286af
Коммит
23c369b35f
|
@ -31,13 +31,8 @@ function goQuitApplication()
|
|||
{
|
||||
var windowToClose = enumerator.getNext();
|
||||
var domWindow = windowManagerInterface.convertISupportsToDOMWindow( windowToClose );
|
||||
if (!("tryToClose" in domWindow))
|
||||
if (!("tryToClose" in domWindow) || domWindow.tryToClose())
|
||||
domWindow.close();
|
||||
else
|
||||
{
|
||||
if ( !domWindow.tryToClose() )
|
||||
return false;
|
||||
}
|
||||
};
|
||||
if (!nativeAppSupport || !nativeAppSupport.isServerMode)
|
||||
appShell.quit();
|
||||
|
|
Загрузка…
Ссылка в новой задаче