Bug 1143263 - WebApp Runtime makes Mac always use discrete graphics card. r=mstange
authorFelipe Gomes <felipc@gmail.com>
Thu, 19 Mar 2015 20:24:08 -0300
changeset 251837 91a05713580d29ce2024d8e6c690b6ced4af1ca6
parent 251836 6f2e247fb7b7be87a825ebaa97b35126d5faf9d8
child 251838 565533c41be68b7bc439f53dfc04320f8e384f6d
push id1156
push userpbrosset@mozilla.com
push dateFri, 20 Mar 2015 16:00:24 +0000
reviewersmstange
bugs1143263
milestone39.0a1
Bug 1143263 - WebApp Runtime makes Mac always use discrete graphics card. r=mstange
toolkit/webapps/MacNativeApp.js
--- a/toolkit/webapps/MacNativeApp.js
+++ b/toolkit/webapps/MacNativeApp.js
@@ -264,16 +264,18 @@ NativeApp.prototype = {
     <key>CFBundleName</key>\n\
     <string>' + escapeXML(this.appLocalizedName) + '</string>\n\
     <key>CFBundlePackageType</key>\n\
     <string>APPL</string>\n\
     <key>CFBundleVersion</key>\n\
     <string>0</string>\n\
     <key>NSHighResolutionCapable</key>\n\
     <true/>\n\
+    <key>NSSupportsAutomaticGraphicsSwitching</key>\n\
+    <true/>\n\
     <key>NSPrincipalClass</key>\n\
     <string>GeckoNSApplication</string>\n\
     <key>FirefoxBinary</key>\n\
 #expand     <string>__MOZ_MACBUNDLE_ID__</string>\n\
   </dict>\n\
 </plist>';
 
     yield writeToFile(OS.Path.join(aDir, this.contentsDir, "Info.plist"),