Bug 1201535 - Disable view source tabs for Beta / Release. r=bz ba=ritu
authorJ. Ryan Stinnett <jryans@gmail.com>
Tue, 08 Sep 2015 18:32:38 -0500
changeset 282194 997cb9b3e15da0f9b537d96c31c2166d77faa750
parent 282193 8008235a2429060025d736c2063ef53806427832
child 282195 904c9cae1be14ad12711a7f98725c5ec792ce5e3
push id5046
push userkwierso@gmail.com
push dateWed, 09 Sep 2015 20:09:47 +0000
treeherdermozilla-beta@997cb9b3e15d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1201535
milestone41.0
Bug 1201535 - Disable view source tabs for Beta / Release. r=bz ba=ritu
browser/app/profile/firefox.js
--- a/browser/app/profile/firefox.js
+++ b/browser/app/profile/firefox.js
@@ -1964,15 +1964,20 @@ pref("reader.parse-node-limit", 0);
 
 pref("browser.pocket.enabled", true);
 pref("browser.pocket.api", "api.getpocket.com");
 pref("browser.pocket.site", "getpocket.com");
 pref("browser.pocket.oAuthConsumerKey", "40249-e88c401e1b1f2242d9e441c4");
 pref("browser.pocket.useLocaleList", true);
 pref("browser.pocket.enabledLocales", "cs de en-GB en-US en-ZA es-ES es-MX fr hu it ja ja-JP-mac ko nl pl pt-BR pt-PT ru zh-CN zh-TW");
 
+// View source tabs are only enabled by default for Dev. Ed and Nightly.
+#ifdef RELEASE_BUILD
+pref("view_source.tab", false);
+#else
 pref("view_source.tab", true);
+#endif
 
 // Enable Service Workers for desktop on non-release builds
 #ifndef RELEASE_BUILD
 pref("dom.serviceWorkers.enabled", true);
 pref("dom.serviceWorkers.interception.enabled", true);
 #endif