mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 830258 - [Webapps] .uninstall() should return "Webapps:Uninstall:Return:KO" when uninstalling a non-removable app (part 1, fix .uninstall()). r=fabrice
This commit is contained in:
parent
6b8c3d1cef
commit
c2044e9cdf
@ -2298,8 +2298,10 @@ this.DOMApplicationRegistry = {
|
||||
|
||||
dump("-- webapps.js uninstall " + app.manifestURL + "\n");
|
||||
|
||||
if (!app.removable)
|
||||
return;
|
||||
if (!app.removable) {
|
||||
debug("Error: cannot unintall a non-removable app.");
|
||||
break;
|
||||
}
|
||||
|
||||
// Check if we are downloading something for this app, and cancel the
|
||||
// download if needed.
|
||||
@ -2343,6 +2345,9 @@ this.DOMApplicationRegistry = {
|
||||
return;
|
||||
}
|
||||
|
||||
// Fall-through, fails to uninstall the desired app because:
|
||||
// - we cannot find the app to be uninstalled.
|
||||
// - the app to be uninstalled is not removable.
|
||||
aMm.sendAsyncMessage("Webapps:Uninstall:Return:KO", aData);
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user