зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1169122 - Change the way to reference AppWindowManager. r=jgriffin
This commit is contained in:
Родитель
1d3004ee80
Коммит
3a84fa3dfd
|
@ -474,13 +474,11 @@ setReq.onsuccess = function() {
|
|||
for (let i = 0; i < apps.length; i++) {
|
||||
let app = apps[i];
|
||||
if (app.manifest.name === 'Test Container') {
|
||||
let manager = window.wrappedJSObject.appWindowManager || window.wrappedJSObject.AppWindowManager;
|
||||
if (!manager) {
|
||||
window.wrappedJSObject.Service.request('AppWindowManager:kill', app.origin).then(function() {
|
||||
marionetteScriptFinished(true);
|
||||
}).catch(function() {
|
||||
marionetteScriptFinished(false);
|
||||
return;
|
||||
}
|
||||
manager.kill(app.origin);
|
||||
marionetteScriptFinished(true);
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче