зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1385484
- Ensure that login reputation checks are disabled in tests. r=hchang
The login reputation checks depend on a server lookup and therefore would render non-deterministic the performance and correctness of tests. MozReview-Commit-ID: Bil0rSZsGPT --HG-- extra : rebase_source : ae06a028c71eee323307ecd4e62bbf1e8a14fe13
This commit is contained in:
Родитель
adc9339128
Коммит
95ce2d4568
|
@ -59,6 +59,7 @@ DEFAULT_NO_CONNECTIONS_PREFS = {
|
|||
'browser.safebrowsing.malware.enabled' : False,
|
||||
'browser.safebrowsing.phishing.enabled' : False,
|
||||
'browser.safebrowsing.blockedURIs.enabled' : False,
|
||||
'browser.safebrowsing.passwords.enabled' : False,
|
||||
'browser.safebrowsing.provider.google.updateURL': 'http://localhost/safebrowsing-dummy/update',
|
||||
'browser.safebrowsing.provider.google.gethashURL': 'http://localhost/safebrowsing-dummy/gethash',
|
||||
'browser.safebrowsing.provider.google4.updateURL': 'http://localhost/safebrowsing4-dummy/update',
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
"browser.safebrowsing.malware.enabled": false,
|
||||
"browser.safebrowsing.phishing.enabled": false,
|
||||
"browser.safebrowsing.blockedURIs.enabled": false,
|
||||
"browser.safebrowsing.passwords.enabled": false,
|
||||
"browser.safebrowsing.provider.google.updateURL": "http://localhost/safebrowsing-dummy/update",
|
||||
"browser.safebrowsing.provider.google.gethashURL": "http://localhost/safebrowsing-dummy/gethash",
|
||||
"browser.safebrowsing.provider.google.reportURL": "http://localhost/safebrowsing-dummy/malwarereport",
|
||||
|
|
|
@ -26,6 +26,7 @@ user_pref("toolkit.telemetry.enabled", false);
|
|||
user_pref("browser.safebrowsing.phishing.enabled", false);
|
||||
user_pref("browser.safebrowsing.malware.enabled", false);
|
||||
user_pref("browser.safebrowsing.blockedURIs.enabled", false);
|
||||
user_pref("browser.safebrowsing.passwords.enabled", false);
|
||||
user_pref("privacy.trackingprotection.enabled", false);
|
||||
user_pref("privacy.trackingprotection.pbmode.enabled", false);
|
||||
user_pref("browser.snippets.enabled", false);
|
||||
|
|
|
@ -87,6 +87,7 @@ user_pref("toolkit.telemetry.unified", false);
|
|||
user_pref("browser.safebrowsing.phishing.enabled", false);
|
||||
user_pref("browser.safebrowsing.malware.enabled", false);
|
||||
user_pref("browser.safebrowsing.blockedURIs.enabled", false);
|
||||
user_pref("browser.safebrowsing.passwords.enabled", false);
|
||||
user_pref("browser.safebrowsing.downloads.remote.url", "http://127.0.0.1/safebrowsing-dummy/gethash");
|
||||
user_pref("browser.safebrowsing.provider.google.gethashURL", "http://127.0.0.1/safebrowsing-dummy/gethash");
|
||||
user_pref("browser.safebrowsing.provider.google.updateURL", "http://127.0.0.1/safebrowsing-dummy/update");
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use mozprofile::preferences::Pref;
|
||||
|
||||
lazy_static! {
|
||||
pub static ref DEFAULT: [(&'static str, Pref); 78] = [
|
||||
pub static ref DEFAULT: [(&'static str, Pref); 79] = [
|
||||
// Disable automatic downloading of new releases
|
||||
("app.update.auto", Pref::new(false)),
|
||||
|
||||
|
@ -51,6 +51,7 @@ lazy_static! {
|
|||
// Disable safebrowsing components
|
||||
("browser.safebrowsing.blockedURIs.enabled", Pref::new(false)),
|
||||
("browser.safebrowsing.downloads.enabled", Pref::new(false)),
|
||||
("browser.safebrowsing.passwords.enabled", Pref::new(false)),
|
||||
("browser.safebrowsing.malware.enabled", Pref::new(false)),
|
||||
("browser.safebrowsing.phishing.enabled", Pref::new(false)),
|
||||
|
||||
|
|
|
@ -297,6 +297,7 @@ class FennecInstance(GeckoInstance):
|
|||
|
||||
# Disable safebrowsing components
|
||||
"browser.safebrowsing.downloads.enabled": False,
|
||||
"browser.safebrowsing.passwords.enabled": False,
|
||||
|
||||
# Do not restore the last open set of tabs if the browser has crashed
|
||||
"browser.sessionstore.resume_from_crash": False,
|
||||
|
@ -433,6 +434,7 @@ class DesktopInstance(GeckoInstance):
|
|||
# Disable safebrowsing components
|
||||
"browser.safebrowsing.blockedURIs.enabled": False,
|
||||
"browser.safebrowsing.downloads.enabled": False,
|
||||
"browser.safebrowsing.passwords.enabled": False,
|
||||
"browser.safebrowsing.malware.enabled": False,
|
||||
"browser.safebrowsing.phishing.enabled": False,
|
||||
|
||||
|
|
|
@ -144,6 +144,7 @@ const RECOMMENDED_PREFS = new Map([
|
|||
// as it is picked up at runtime.
|
||||
["browser.safebrowsing.blockedURIs.enabled", false],
|
||||
["browser.safebrowsing.downloads.enabled", false],
|
||||
["browser.safebrowsing.passwords.enabled", false],
|
||||
["browser.safebrowsing.malware.enabled", false],
|
||||
["browser.safebrowsing.phishing.enabled", false],
|
||||
|
||||
|
|
|
@ -116,6 +116,7 @@ const RECOMMENDED_PREFS = new Map([
|
|||
// as it is picked up at runtime.
|
||||
["browser.safebrowsing.blockedURIs.enabled", false],
|
||||
["browser.safebrowsing.downloads.enabled", false],
|
||||
["browser.safebrowsing.passwords.enabled", false],
|
||||
["browser.safebrowsing.malware.enabled", false],
|
||||
["browser.safebrowsing.phishing.enabled", false],
|
||||
|
||||
|
|
|
@ -123,6 +123,7 @@ DEFAULTS = dict(
|
|||
'browser.safebrowsing.phishing.enabled': False,
|
||||
'browser.safebrowsing.malware.enabled': False,
|
||||
'browser.safebrowsing.blockedURIs.enabled': False,
|
||||
'browser.safebrowsing.passwords.enabled': False,
|
||||
'privacy.trackingprotection.enabled': False,
|
||||
'privacy.trackingprotection.pbmode.enabled': False,
|
||||
'browser.search.isUS': True,
|
||||
|
|
Загрузка…
Ссылка в новой задаче