From 8bff565eca63c5e334c0f64f82c52af63a7b5ec3 Mon Sep 17 00:00:00 2001 From: Kathy Brade Date: Thu, 10 Dec 2015 16:42:49 -0500 Subject: [PATCH] Bug 16441: Suppress "Reset Tor Browser" prompt. --- browser/app/profile/000-tor-browser.js | 3 +++ tbb-tests/browser_tor_TB4.js | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/browser/app/profile/000-tor-browser.js b/browser/app/profile/000-tor-browser.js index 8cf6323532cdd..535f8547c402a 100644 --- a/browser/app/profile/000-tor-browser.js +++ b/browser/app/profile/000-tor-browser.js @@ -37,6 +37,9 @@ pref("browser.slowStartup.notificationDisabled", true); pref("browser.slowStartup.maxSamples", 0); pref("browser.slowStartup.samples", 0); +// Disable the "Refresh" prompt that is displayed for stale profiles. +pref("browser.disableResetPrompt", true); + // Disk activity: Disable Browsing History Storage pref("browser.privatebrowsing.autostart", true); pref("browser.cache.disk.enable", false); diff --git a/tbb-tests/browser_tor_TB4.js b/tbb-tests/browser_tor_TB4.js index e566fb2d81b5e..032386e22ae16 100644 --- a/tbb-tests/browser_tor_TB4.js +++ b/tbb-tests/browser_tor_TB4.js @@ -17,6 +17,9 @@ let expectedPrefs = [ ["startup.homepage_welcome_url", ""], ["startup.homepage_override_url", ""], + // Disable the "Refresh" prompt that is displayed for stale profiles. + ["browser.disableResetPrompt", true], + // Disk activity: Disable Browsing History Storage ["browser.privatebrowsing.autostart", true], ["browser.cache.disk.enable", false], @@ -147,7 +150,7 @@ let getPref = function (prefName) { if (type === gPrefService.PREF_BOOL) return gPrefService.getBoolPref(prefName); if (type === gPrefService.PREF_STRING) return gPrefService.getCharPref(prefName); // Something went wrong. - throw new Error("Can't access pref."); + throw new Error("Can't access pref " + prefName); }; let testPref = function([key, expectedValue]) { -- GitLab