mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 770297. Call to isLaunchable needs to use the app origin, and not the install origin. r=fabrice
This commit is contained in:
parent
31417fc7f4
commit
0fac728073
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user