Bug 1201535 - Disable view source tabs for Beta / Release. r=bz a=sledru
authorJ. Ryan Stinnett <jryans@gmail.com>
Tue, 08 Sep 2015 18:32:38 -0500
changeset 289208 8ebca8b445df603da0e96963c0397dac4fd1383d
parent 289207 dc8eaa3246eda381852c82fb84fa4ced35132bb9
child 289209 b15f772f84a2c5f21cf3bf1d2928a2ba2665a22a
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz, sledru
bugs1201535
milestone42.0a2
Bug 1201535 - Disable view source tabs for Beta / Release. r=bz a=sledru
browser/app/profile/firefox.js
--- a/browser/app/profile/firefox.js
+++ b/browser/app/profile/firefox.js
@@ -1935,16 +1935,21 @@ pref("reader.errors.includeURLs", true);
 
 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 ServiceWorkers for Push API consumers.
 // Interception is still disabled.
 pref("dom.serviceWorkers.enabled", true);
 
 // Enable Push API.
 pref("dom.push.enabled", true);