mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 782171. Create webapp profile directory on installation, even when there isn't an appcache url in the manifest. r=felipe
This commit is contained in:
parent
3a2037dfdd
commit
67599d06b2
@ -113,7 +113,7 @@ let webappsUI = {
|
||||
let app = WebappsInstaller.install(aData);
|
||||
if (app) {
|
||||
let localDir = null;
|
||||
if (app.appcacheDefined && app.appProfile) {
|
||||
if (app.appProfile) {
|
||||
localDir = app.appProfile.localDir;
|
||||
}
|
||||
|
||||
|
@ -114,8 +114,6 @@ function NativeApp(aData) {
|
||||
}
|
||||
this.shortDescription = sanitize(shortDesc);
|
||||
|
||||
this.appcacheDefined = (app.manifest.appcache_path != undefined);
|
||||
|
||||
// The app registry is the Firefox profile from which the app
|
||||
// was installed.
|
||||
this.registryFolder = Services.dirsvc.get("ProfD", Ci.nsIFile);
|
||||
@ -293,9 +291,6 @@ WinNativeApp.prototype = {
|
||||
* Creates the profile to be used for this app.
|
||||
*/
|
||||
_createAppProfile: function() {
|
||||
if (!this.appcacheDefined)
|
||||
return;
|
||||
|
||||
let profSvc = Cc["@mozilla.org/toolkit/profile-service;1"]
|
||||
.getService(Ci.nsIToolkitProfileService);
|
||||
|
||||
@ -542,9 +537,6 @@ MacNativeApp.prototype = {
|
||||
},
|
||||
|
||||
_createAppProfile: function() {
|
||||
if (!this.appcacheDefined)
|
||||
return;
|
||||
|
||||
let profSvc = Cc["@mozilla.org/toolkit/profile-service;1"]
|
||||
.getService(Ci.nsIToolkitProfileService);
|
||||
|
||||
@ -758,9 +750,6 @@ LinuxNativeApp.prototype = {
|
||||
},
|
||||
|
||||
_createAppProfile: function() {
|
||||
if (!this.appcacheDefined)
|
||||
return;
|
||||
|
||||
let profSvc = Cc["@mozilla.org/toolkit/profile-service;1"]
|
||||
.getService(Ci.nsIToolkitProfileService);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user