Commit 9f9cbb32 authored by scottdowne's avatar scottdowne
Browse files

Bug 1900137 - Home and newtab turn on wallpaper for nightly...

Bug 1900137 - Home and newtab turn on wallpaper for nightly r=home-newtab-reviewers,webdriver-reviewers,whimboo,nbarrett

Differential Revision: https://phabricator.services.mozilla.com/D212334
parent 6a8043e4
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1713,7 +1713,11 @@ pref("browser.newtabpage.activity-stream.weather.display", "simple");
#endif

// Preference to enable wallpaper selection in the Customize Menu of new tab page
#ifdef NIGHTLY_BUILD
  pref("browser.newtabpage.activity-stream.newtabWallpapers.enabled", true);
#else
  pref("browser.newtabpage.activity-stream.newtabWallpapers.enabled", false);
#endif
pref("browser.newtabpage.activity-stream.newtabWallpapers.v2.enabled", false);

// Current new tab page background images.
+4 −0
Original line number Diff line number Diff line
@@ -81,6 +81,10 @@ add_setup(async function () {
    "browser.newtabpage.activity-stream.discoverystream.region-weather-config",
    ""
  );
  Services.prefs.setBoolPref(
    "browser.newtabpage.activity-stream.newtabWallpapers.enabled",
    false
  );

  let defaultDSConfig = JSON.parse(
    PREFS_CONFIG.get("discoverystream.config").getValue({
+3 −0
Original line number Diff line number Diff line
@@ -109,6 +109,9 @@ const COMMON_PREFERENCES = new Map([
    "",
  ],

  // Make sure newtab wallpapers don't hit the network to retrieve wallpaper data.
  ["browser.newtabpage.activity-stream.newtabWallpapers.enabled", false],

  // Make sure Topsites doesn't hit the network to retrieve sponsored tiles.
  ["browser.newtabpage.activity-stream.showSponsoredTopSites", false],

+2 −0
Original line number Diff line number Diff line
@@ -47,6 +47,8 @@ class GeckoInstance(object):
        "apz.content_response_timeout": 60000,
        # Don't pull weather data from the network
        "browser.newtabpage.activity-stream.discoverystream.region-weather-config": "",
        # Don't pull wallpaper content from the network
        "browser.newtabpage.activity-stream.newtabWallpapers.enabled": False,
        # Don't pull sponsored Top Sites content from the network
        "browser.newtabpage.activity-stream.showSponsoredTopSites": False,
        # Disable geolocation ping (#1)
+4 −2
Original line number Diff line number Diff line
@@ -73,10 +73,12 @@ user_pref("browser.region.network.url", "");
user_pref("browser.tabs.unloadOnLowMemory", false);
// Don't pull Top Sites content from the network
user_pref("browser.topsites.contile.enabled", false);
// Don't pull sponsored Top Sites content from the network
user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false);
// Don't pull weather data from the network
user_pref("browser.newtabpage.activity-stream.discoverystream.region-weather-config", "");
// Don't pull wallpaper content from the network
user_pref("browser.newtabpage.activity-stream.newtabWallpapers.enabled", false);
// Don't pull sponsored Top Sites content from the network
user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false);
// Default Glean to "record but don't report" mode. Docs:
// https://firefox-source-docs.mozilla.org/toolkit/components/glean/dev/preferences.html
user_pref("telemetry.fog.test.localhost_port", -1);
Loading