Bug 898647 - Backend for app updates. Fix Mac OS X b2g desktop build. r=myk
authorMarco Castelluccio <mar.castelluccio@studenti.unina.it>
Sat, 15 Mar 2014 14:37:50 -0700
changeset 192011 c8c75db14c4ef7ab40df23e3c59bb028b0faf60c
parent 192010 e9bff15a8d19bed540510b8230f71a1f10cb4a55
child 192012 c41d3898b1c301c8ee698ba4563f848991ee5b57
push id474
push userasasaki@mozilla.com
push dateMon, 02 Jun 2014 21:01:02 +0000
treeherdermozilla-release@967f4cf1b31c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmyk
bugs898647
milestone30.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 898647 - Backend for app updates. Fix Mac OS X b2g desktop build. r=myk
toolkit/webapps/WebappOSUtils.jsm
--- a/toolkit/webapps/WebappOSUtils.jsm
+++ b/toolkit/webapps/WebappOSUtils.jsm
@@ -203,19 +203,22 @@ this.WebappOSUtils = {
 #endif
     // Anything unsupported, like Metro
     throw new Error("Unsupported apps platform");
   },
 
   getPackagePath: function(aApp) {
     let packagePath = this.getInstallPath(aApp);
 
+    // Only for Firefox on Mac OS X
+#ifndef MOZ_B2G
 #ifdef XP_MACOSX
     packagePath = OS.Path.join(packagePath, "Contents", "Resources");
 #endif
+#endif
 
     return packagePath;
   },
 
   launch: function(aApp) {
     let uniqueName = this.getUniqueName(aApp);
 
 #ifdef XP_WIN