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:
Marco Castelluccio 2012-08-14 23:19:36 -07:00
parent 1803997258
commit cb9964a73c
2 changed files with 1 additions and 12 deletions

View File

@ -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;
}

View File

@ -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);