Skip to content

Commit

Permalink
Bug 1719755 - Get sponsored topsites data from Contile by default r=d…
Browse files Browse the repository at this point in the history
…ao,webdriver-reviewers,whimboo

Differential Revision: https://phabricator.services.mozilla.com/D119462
  • Loading branch information
Michael Cooper committed Jul 20, 2021
1 parent 08dccdd commit 8c5d5ad
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion browser/app/profile/firefox.js
Original file line number Diff line number Diff line change
Expand Up @@ -1416,7 +1416,7 @@ pref("prompts.defaultModalType", 3);

pref("browser.topsites.useRemoteSetting", true);
// Fetch sponsored Top Sites from Mozilla Tiles Service (Contile)
pref("browser.topsites.contile.enabled", false);
pref("browser.topsites.contile.enabled", true);
pref("browser.topsites.contile.endpoint", "https://contile.services.mozilla.com/v1/tiles");

// The base URL for the Quick Suggest anonymizing proxy. To make a request to
Expand Down
3 changes: 3 additions & 0 deletions remote/shared/RecommendedPreferences.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ const COMMON_PREFERENCES = new Map([

// Prevent starting into safe mode after application crashes
["toolkit.startup.max_resumed_crashes", -1],

// Make sure Topsites doesn't hit the network to retrieve tiles from Contile.
["browser.topsites.contile.enabled", false],
]);

const RecommendedPreferences = {
Expand Down
2 changes: 2 additions & 0 deletions testing/marionette/client/marionette_driver/geckoinstance.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ class GeckoInstance(object):
"toolkit.startup.max_resumed_crashes": -1,
# Enabling the support for File object creation in the content process.
"dom.file.createInChild": True,
# Don't pull Top Sites content from the network
"browser.topsites.contile.enabled": False,
}

def __init__(
Expand Down
2 changes: 2 additions & 0 deletions testing/profiles/common/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,5 @@ user_pref("geo.provider.network.compare.url", "");
user_pref("browser.region.network.url", "");
// Do not unload tabs on low memory when testing
user_pref("browser.tabs.unloadOnLowMemory", false);
// Don't pull Top Sites content from the network
user_pref("browser.topsites.contile.endpoint", "http://localhost/contile-dummy/v1");
2 changes: 2 additions & 0 deletions testing/profiles/xpcshell/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ user_pref("network.cookie.sameSite.laxByDefault", false);
// Bug 455077 - Ensure we use sRGB as the output profile for test consistency.
user_pref("gfx.color_management.force_srgb", true);
user_pref("gfx.color_management.mode", 1);
// Don't enable remote tiles on new-tab pages in xpcshell
user_pref("browser.topsites.contile.enabled", false);

0 comments on commit 8c5d5ad

Please sign in to comment.