зеркало из https://github.com/mozilla/gecko-dev.git
Bug 770297. Call to isLaunchable needs to use the app origin, and not the install origin. r=fabrice
This commit is contained in:
Родитель
fa9c462002
Коммит
809da8f2ae
|
@ -301,7 +301,7 @@ let DOMApplicationRegistry = {
|
|||
let tmp = [];
|
||||
let id = this._appId(aData.origin);
|
||||
|
||||
if (id && this._isLaunchable(aData.origin)) {
|
||||
if (id && this._isLaunchable(this.webapps[id].origin)) {
|
||||
let app = this._cloneAppObject(this.webapps[id]);
|
||||
aData.apps.push(app);
|
||||
tmp.push({ id: id });
|
||||
|
@ -320,7 +320,7 @@ let DOMApplicationRegistry = {
|
|||
|
||||
for (let id in this.webapps) {
|
||||
if (this.webapps[id].installOrigin == aData.origin &&
|
||||
this._isLaunchable(aData.origin)) {
|
||||
this._isLaunchable(this.webapps[id].origin)) {
|
||||
aData.apps.push(this._cloneAppObject(this.webapps[id]));
|
||||
tmp.push({ id: id });
|
||||
}
|
||||
|
@ -339,7 +339,7 @@ let DOMApplicationRegistry = {
|
|||
|
||||
for (let id in this.webapps) {
|
||||
if (this.webapps[id].installOrigin == aData.origin &&
|
||||
!this._isLaunchable(aData.origin)) {
|
||||
!this._isLaunchable(this.webapps[id].origin)) {
|
||||
aData.apps.push(this._cloneAppObject(this.webapps[id]));
|
||||
tmp.push({ id: id });
|
||||
}
|
||||
|
@ -358,7 +358,7 @@ let DOMApplicationRegistry = {
|
|||
|
||||
for (let id in this.webapps) {
|
||||
let app = this._cloneAppObject(this.webapps[id]);
|
||||
if (!this._isLaunchable(app.installOrigin))
|
||||
if (!this._isLaunchable(app.origin))
|
||||
continue;
|
||||
|
||||
aData.apps.push(app);
|
||||
|
|
Загрузка…
Ссылка в новой задаче