Bug 998089 - Fix icon installation for packaged apps on Mac. r=felipe
authorMarco Castelluccio <mar.castelluccio@studenti.unina.it>
Tue, 22 Apr 2014 16:48:00 +0200
changeset 179989 fcdca8a9cda165112f8762cc77e03f25446d8c12
parent 179988 63bb9295a0704ef6816a0a6dd363363157890063
child 179990 f63f6fb5e5af887f94f6b4501caef042fbbefd12
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersfelipe
bugs998089
milestone31.0a1
Bug 998089 - Fix icon installation for packaged apps on Mac. r=felipe
toolkit/webapps/NativeApp.jsm
--- a/toolkit/webapps/NativeApp.jsm
+++ b/toolkit/webapps/NativeApp.jsm
@@ -178,17 +178,17 @@ CommonNativeApp.prototype = {
    */
   _getIcon: function(aTmpDir) {
     try {
       // If the icon is in the zip package, we should modify the url
       // to point to the zip file (we can't use the app protocol yet
       // because the app isn't installed yet).
       if (this.iconURI.scheme == "app") {
         let zipUrl = OS.Path.toFileURI(OS.Path.join(aTmpDir,
-                                                    "application.zip"));
+                                                    this.zipFile));
 
         let filePath = this.iconURI.QueryInterface(Ci.nsIURL).filePath;
 
         this.iconURI = Services.io.newURI("jar:" + zipUrl + "!" + filePath,
                                           null, null);
       }