mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
Bug 1830265 - Enable prettier formatting on testing/profiles/**/user.js files. r=ahal,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D176635
This commit is contained in:
parent
2f8c17920f
commit
0260a3c821
@ -37,9 +37,6 @@ modules/libpref/test/unit/data/testPrefSticky.js
|
||||
modules/libpref/test/unit/extdata/testExt.js
|
||||
services/sync/tests/unit/prefs_test_prefs_store.js
|
||||
|
||||
# Ignore testing pref files which aren't parsed normally.
|
||||
testing/profiles/**/user.js
|
||||
|
||||
# Ignore CORS fixtures which require specific resource hashes.
|
||||
dom/security/test/sri/script*
|
||||
|
||||
|
@ -172,12 +172,31 @@ class Preferences(object):
|
||||
marker = "##//" # magical marker
|
||||
lines = [i.strip() for i in mozfile.load(path).readlines()]
|
||||
_lines = []
|
||||
multi_line_pref = None
|
||||
for line in lines:
|
||||
# decode bytes in case of URL processing
|
||||
if isinstance(line, bytes):
|
||||
line = line.decode()
|
||||
if not line.startswith(pref_setter):
|
||||
pref_start = line.startswith(pref_setter)
|
||||
|
||||
# Handle preferences split over multiple lines
|
||||
# Some lines may include brackets so do our best to ensure this
|
||||
# is an actual expected end of function call by checking for a
|
||||
# semi-colon as well.
|
||||
if pref_start and not ");" in line:
|
||||
multi_line_pref = line
|
||||
continue
|
||||
elif multi_line_pref:
|
||||
multi_line_pref = multi_line_pref + line
|
||||
if ");" in line:
|
||||
if "//" in multi_line_pref:
|
||||
multi_line_pref = multi_line_pref.replace("//", marker)
|
||||
_lines.append(multi_line_pref)
|
||||
multi_line_pref = None
|
||||
continue
|
||||
elif not pref_start:
|
||||
continue
|
||||
|
||||
if "//" in line:
|
||||
line = line.replace("//", marker)
|
||||
_lines.append(line)
|
||||
|
@ -0,0 +1,5 @@
|
||||
/* globals user_pref */
|
||||
user_pref(
|
||||
"browser.long.preference.name.that.causes.the.line.to.wrap",
|
||||
"itislong"
|
||||
);
|
@ -392,6 +392,15 @@ def test_read_prefs_with_interpolation():
|
||||
assert dict(read_prefs) == expected_prefs
|
||||
|
||||
|
||||
def test_read_prefs_with_multiline():
|
||||
"""test reading preferences from a prefs.js file that contains multiline prefs"""
|
||||
|
||||
path = os.path.join(here, "files", "prefs_with_multiline.js")
|
||||
assert dict(Preferences.read_prefs(path)) == {
|
||||
"browser.long.preference.name.that.causes.the.line.to.wrap": "itislong"
|
||||
}
|
||||
|
||||
|
||||
def test_read_prefs_ttw():
|
||||
"""test reading preferences through the web via wptserve"""
|
||||
|
||||
|
@ -11,10 +11,22 @@ user_pref("browser.dom.window.dump.enabled", true);
|
||||
user_pref("devtools.console.stdout.chrome", true);
|
||||
// asrouter expects a plain object or null
|
||||
user_pref("browser.newtabpage.activity-stream.asrouter.providers.cfr", "null");
|
||||
user_pref("browser.newtabpage.activity-stream.asrouter.providers.snippets", "null");
|
||||
user_pref("browser.newtabpage.activity-stream.asrouter.providers.message-groups", "null");
|
||||
user_pref("browser.newtabpage.activity-stream.asrouter.providers.whats-new-panel", "null");
|
||||
user_pref("browser.newtabpage.activity-stream.asrouter.providers.messaging-experiments", "null");
|
||||
user_pref(
|
||||
"browser.newtabpage.activity-stream.asrouter.providers.snippets",
|
||||
"null"
|
||||
);
|
||||
user_pref(
|
||||
"browser.newtabpage.activity-stream.asrouter.providers.message-groups",
|
||||
"null"
|
||||
);
|
||||
user_pref(
|
||||
"browser.newtabpage.activity-stream.asrouter.providers.whats-new-panel",
|
||||
"null"
|
||||
);
|
||||
user_pref(
|
||||
"browser.newtabpage.activity-stream.asrouter.providers.messaging-experiments",
|
||||
"null"
|
||||
);
|
||||
user_pref("browser.newtabpage.activity-stream.feeds.system.topstories", false);
|
||||
user_pref("browser.newtabpage.activity-stream.feeds.snippets", false);
|
||||
user_pref("browser.newtabpage.activity-stream.tippyTop.service.endpoint", "");
|
||||
@ -46,7 +58,10 @@ user_pref("extensions.experiments.enabled", true);
|
||||
// Turn off extension updates so they don't bother tests
|
||||
user_pref("extensions.update.enabled", false);
|
||||
// Prevent network access for recommendations by default. The payload is {"results":[]}.
|
||||
user_pref("extensions.getAddons.discovery.api_url", "data:;base64,eyJyZXN1bHRzIjpbXX0%3D");
|
||||
user_pref(
|
||||
"extensions.getAddons.discovery.api_url",
|
||||
"data:;base64,eyJyZXN1bHRzIjpbXX0%3D"
|
||||
);
|
||||
// Treat WebExtension API/schema warnings as errors.
|
||||
user_pref("extensions.webextensions.warnings-as-errors", true);
|
||||
// Disable useragent updates.
|
||||
@ -56,7 +71,10 @@ user_pref("media.gmp-manager.updateEnabled", false);
|
||||
// Don't do network connections for mitm priming
|
||||
user_pref("security.certerrors.mitm.priming.enabled", false);
|
||||
// Enable some dangerous features for test code. :-(
|
||||
user_pref("security.turn_off_all_security_so_that_viruses_can_take_over_this_computer", true);
|
||||
user_pref(
|
||||
"security.turn_off_all_security_so_that_viruses_can_take_over_this_computer",
|
||||
true
|
||||
);
|
||||
user_pref("xpinstall.signatures.required", false);
|
||||
// Prevent Remote Settings to issue non local connections.
|
||||
user_pref("services.settings.server", "data:,#remote-settings-dummy/v1");
|
||||
|
@ -22,21 +22,45 @@ user_pref("browser.newtabpage.activity-stream.telemetry", false);
|
||||
user_pref("browser.reader.detectedFirstArticle", true);
|
||||
user_pref("browser.safebrowsing.blockedURIs.enabled", false);
|
||||
user_pref("browser.safebrowsing.downloads.enabled", false);
|
||||
user_pref("browser.safebrowsing.downloads.remote.url", "http://127.0.0.1/safebrowsing-dummy/downloads");
|
||||
user_pref(
|
||||
"browser.safebrowsing.downloads.remote.url",
|
||||
"http://127.0.0.1/safebrowsing-dummy/downloads"
|
||||
);
|
||||
user_pref("browser.safebrowsing.malware.enabled", false);
|
||||
user_pref("browser.safebrowsing.passwords.enabled", false);
|
||||
user_pref("browser.safebrowsing.phishing.enabled", false);
|
||||
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");
|
||||
user_pref("browser.safebrowsing.provider.google4.gethashURL", "http://127.0.0.1/safebrowsing4-dummy/gethash");
|
||||
user_pref("browser.safebrowsing.provider.google4.updateURL", "http://127.0.0.1/safebrowsing4-dummy/update");
|
||||
user_pref("browser.safebrowsing.provider.mozilla.gethashURL", "http://127.0.0.1/safebrowsing-dummy/gethash");
|
||||
user_pref("browser.safebrowsing.provider.mozilla.updateURL", "http://127.0.0.1/safebrowsing-dummy/update");
|
||||
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"
|
||||
);
|
||||
user_pref(
|
||||
"browser.safebrowsing.provider.google4.gethashURL",
|
||||
"http://127.0.0.1/safebrowsing4-dummy/gethash"
|
||||
);
|
||||
user_pref(
|
||||
"browser.safebrowsing.provider.google4.updateURL",
|
||||
"http://127.0.0.1/safebrowsing4-dummy/update"
|
||||
);
|
||||
user_pref(
|
||||
"browser.safebrowsing.provider.mozilla.gethashURL",
|
||||
"http://127.0.0.1/safebrowsing-dummy/gethash"
|
||||
);
|
||||
user_pref(
|
||||
"browser.safebrowsing.provider.mozilla.updateURL",
|
||||
"http://127.0.0.1/safebrowsing-dummy/update"
|
||||
);
|
||||
user_pref("browser.shell.checkDefaultBrowser", false);
|
||||
user_pref("browser.startup.couldRestoreSession.count", -1);
|
||||
user_pref("browser.tabs.remote.autostart", true);
|
||||
user_pref("browser.warnOnQuit", false);
|
||||
user_pref("datareporting.healthreport.documentServerURI", "http://127.0.0.1/healthreport/");
|
||||
user_pref(
|
||||
"datareporting.healthreport.documentServerURI",
|
||||
"http://127.0.0.1/healthreport/"
|
||||
);
|
||||
user_pref("devtools.chrome.enabled", false);
|
||||
user_pref("devtools.debugger.remote-enabled", false);
|
||||
user_pref("devtools.theme", "light");
|
||||
@ -49,17 +73,38 @@ user_pref("dom.push.connection.enabled", false);
|
||||
user_pref("extensions.autoDisableScopes", 10);
|
||||
user_pref("extensions.blocklist.enabled", false);
|
||||
user_pref("extensions.checkCompatibility", false);
|
||||
user_pref("extensions.getAddons.get.url", "http://127.0.0.1/extensions-dummy/repositoryGetURL");
|
||||
user_pref("extensions.getAddons.search.browseURL", "http://127.0.0.1/extensions-dummy/repositoryBrowseURL");
|
||||
user_pref("extensions.hotfix.url", "http://127.0.0.1/extensions-dummy/hotfixURL");
|
||||
user_pref("extensions.systemAddon.update.url", "http://127.0.0.1/dummy-system-addons.xml");
|
||||
user_pref("extensions.update.background.url", "http://127.0.0.1/extensions-dummy/updateBackgroundURL");
|
||||
user_pref(
|
||||
"extensions.getAddons.get.url",
|
||||
"http://127.0.0.1/extensions-dummy/repositoryGetURL"
|
||||
);
|
||||
user_pref(
|
||||
"extensions.getAddons.search.browseURL",
|
||||
"http://127.0.0.1/extensions-dummy/repositoryBrowseURL"
|
||||
);
|
||||
user_pref(
|
||||
"extensions.hotfix.url",
|
||||
"http://127.0.0.1/extensions-dummy/hotfixURL"
|
||||
);
|
||||
user_pref(
|
||||
"extensions.systemAddon.update.url",
|
||||
"http://127.0.0.1/dummy-system-addons.xml"
|
||||
);
|
||||
user_pref(
|
||||
"extensions.update.background.url",
|
||||
"http://127.0.0.1/extensions-dummy/updateBackgroundURL"
|
||||
);
|
||||
user_pref("extensions.update.notifyUser", false);
|
||||
user_pref("extensions.update.url", "http://127.0.0.1/extensions-dummy/updateURL");
|
||||
user_pref(
|
||||
"extensions.update.url",
|
||||
"http://127.0.0.1/extensions-dummy/updateURL"
|
||||
);
|
||||
user_pref("identity.fxaccounts.auth.uri", "https://127.0.0.1/fxa-dummy/");
|
||||
user_pref("identity.fxaccounts.migrateToDevEdition", false);
|
||||
user_pref("media.capturestream_hints.enabled", true);
|
||||
user_pref("media.gmp-manager.url", "http://127.0.0.1/gmpmanager-dummy/update.xml");
|
||||
user_pref(
|
||||
"media.gmp-manager.url",
|
||||
"http://127.0.0.1/gmpmanager-dummy/update.xml"
|
||||
);
|
||||
// Don't block old libavcodec libraries when testing, because our test systems
|
||||
// cannot easily be upgraded.
|
||||
user_pref("media.libavcodec.allow-obsolete", true);
|
||||
@ -75,7 +120,10 @@ user_pref("plugin.state.flash", 0);
|
||||
user_pref("privacy.reduceTimerPrecision", false); // Bug 1445243 - reduces precision of tests
|
||||
user_pref("privacy.trackingprotection.annotate_channels", false);
|
||||
user_pref("privacy.trackingprotection.enabled", false);
|
||||
user_pref("privacy.trackingprotection.introURL", "http://127.0.0.1/trackingprotection/tour");
|
||||
user_pref(
|
||||
"privacy.trackingprotection.introURL",
|
||||
"http://127.0.0.1/trackingprotection/tour"
|
||||
);
|
||||
user_pref("privacy.trackingprotection.pbmode.enabled", false);
|
||||
user_pref("security.enable_java", false);
|
||||
user_pref("security.fileuri.strict_origin_policy", false);
|
||||
|
@ -31,23 +31,23 @@ user_pref("toolkit.content-background-hang-monitor.disabled", true);
|
||||
|
||||
// disable async stacks to match release builds
|
||||
// https://developer.mozilla.org/en-US/docs/Mozilla/Benchmarking#Async_Stacks
|
||||
user_pref('javascript.options.asyncstack', false);
|
||||
user_pref("javascript.options.asyncstack", false);
|
||||
|
||||
// disable Firefox Telemetry (and some other things too)
|
||||
// https://bugzilla.mozilla.org/show_bug.cgi?id=1533879
|
||||
user_pref('datareporting.healthreport.uploadEnabled', false);
|
||||
user_pref("datareporting.healthreport.uploadEnabled", false);
|
||||
|
||||
// Telemetry initialization happens on a delay, that may elapse exactly in the
|
||||
// middle of some raptor tests. While it doesn't do a lot of expensive work, it
|
||||
// causes some I/O and thread creation, that can add noise to performance
|
||||
// profiles we use to analyze performance regressions.
|
||||
// https://bugzilla.mozilla.org/show_bug.cgi?id=1706180
|
||||
user_pref('toolkit.telemetry.initDelay', 99999999);
|
||||
user_pref("toolkit.telemetry.initDelay", 99999999);
|
||||
|
||||
// disable autoplay for raptor tests
|
||||
user_pref('media.autoplay.default', 5);
|
||||
user_pref('media.autoplay.ask-permission', true);
|
||||
user_pref('media.autoplay.blocking_policy', 1);
|
||||
user_pref('media.autoplay.block-webaudio', true);
|
||||
user_pref('media.allowed-to-play.enabled', false);
|
||||
user_pref('media.block-autoplay-until-in-foreground', true);
|
||||
user_pref("media.autoplay.default", 5);
|
||||
user_pref("media.autoplay.ask-permission", true);
|
||||
user_pref("media.autoplay.blocking_policy", 1);
|
||||
user_pref("media.autoplay.block-webaudio", true);
|
||||
user_pref("media.allowed-to-play.enabled", false);
|
||||
user_pref("media.block-autoplay-until-in-foreground", true);
|
||||
|
@ -26,25 +26,64 @@ user_pref("browser.bookmarks.max_backups", 0);
|
||||
user_pref("browser.console.showInPanel", true);
|
||||
// Don't connect to Yahoo! for RSS feed tests.
|
||||
// en-US only uses .types.0.uri, but set all of them just to be sure.
|
||||
user_pref("browser.contentHandlers.types.0.uri", "http://test1.example.org/rss?url=%s");
|
||||
user_pref("browser.contentHandlers.types.1.uri", "http://test1.example.org/rss?url=%s");
|
||||
user_pref("browser.contentHandlers.types.2.uri", "http://test1.example.org/rss?url=%s");
|
||||
user_pref("browser.contentHandlers.types.3.uri", "http://test1.example.org/rss?url=%s");
|
||||
user_pref("browser.contentHandlers.types.4.uri", "http://test1.example.org/rss?url=%s");
|
||||
user_pref("browser.contentHandlers.types.5.uri", "http://test1.example.org/rss?url=%s");
|
||||
user_pref(
|
||||
"browser.contentHandlers.types.0.uri",
|
||||
"http://test1.example.org/rss?url=%s"
|
||||
);
|
||||
user_pref(
|
||||
"browser.contentHandlers.types.1.uri",
|
||||
"http://test1.example.org/rss?url=%s"
|
||||
);
|
||||
user_pref(
|
||||
"browser.contentHandlers.types.2.uri",
|
||||
"http://test1.example.org/rss?url=%s"
|
||||
);
|
||||
user_pref(
|
||||
"browser.contentHandlers.types.3.uri",
|
||||
"http://test1.example.org/rss?url=%s"
|
||||
);
|
||||
user_pref(
|
||||
"browser.contentHandlers.types.4.uri",
|
||||
"http://test1.example.org/rss?url=%s"
|
||||
);
|
||||
user_pref(
|
||||
"browser.contentHandlers.types.5.uri",
|
||||
"http://test1.example.org/rss?url=%s"
|
||||
);
|
||||
// Indicate that the download panel has been shown once so that whichever
|
||||
// download test runs first doesn't show the popup inconsistently.
|
||||
user_pref("browser.download.panel.shown", true);
|
||||
user_pref("browser.newtabpage.activity-stream.default.sites", "");
|
||||
user_pref("browser.newtabpage.activity-stream.telemetry", false);
|
||||
// Point the url-classifier to the local testing server for fast failures
|
||||
user_pref("browser.safebrowsing.downloads.remote.url", "http://{server}/safebrowsing-dummy/update");
|
||||
user_pref("browser.safebrowsing.provider.google.gethashURL", "http://{server}/safebrowsing-dummy/gethash");
|
||||
user_pref("browser.safebrowsing.provider.google.updateURL", "http://{server}/safebrowsing-dummy/update");
|
||||
user_pref("browser.safebrowsing.provider.google4.gethashURL", "http://{server}/safebrowsing4-dummy/gethash");
|
||||
user_pref("browser.safebrowsing.provider.google4.updateURL", "http://{server}/safebrowsing4-dummy/update");
|
||||
user_pref("browser.safebrowsing.provider.mozilla.gethashURL", "http://{server}/safebrowsing-dummy/gethash");
|
||||
user_pref("browser.safebrowsing.provider.mozilla.updateURL", "http://{server}/safebrowsing-dummy/update");
|
||||
user_pref(
|
||||
"browser.safebrowsing.downloads.remote.url",
|
||||
"http://{server}/safebrowsing-dummy/update"
|
||||
);
|
||||
user_pref(
|
||||
"browser.safebrowsing.provider.google.gethashURL",
|
||||
"http://{server}/safebrowsing-dummy/gethash"
|
||||
);
|
||||
user_pref(
|
||||
"browser.safebrowsing.provider.google.updateURL",
|
||||
"http://{server}/safebrowsing-dummy/update"
|
||||
);
|
||||
user_pref(
|
||||
"browser.safebrowsing.provider.google4.gethashURL",
|
||||
"http://{server}/safebrowsing4-dummy/gethash"
|
||||
);
|
||||
user_pref(
|
||||
"browser.safebrowsing.provider.google4.updateURL",
|
||||
"http://{server}/safebrowsing4-dummy/update"
|
||||
);
|
||||
user_pref(
|
||||
"browser.safebrowsing.provider.mozilla.gethashURL",
|
||||
"http://{server}/safebrowsing-dummy/gethash"
|
||||
);
|
||||
user_pref(
|
||||
"browser.safebrowsing.provider.mozilla.updateURL",
|
||||
"http://{server}/safebrowsing-dummy/update"
|
||||
);
|
||||
user_pref("browser.search.suggest.timeout", 10000); // use a 10s suggestion timeout in tests
|
||||
user_pref("browser.shell.checkDefaultBrowser", false);
|
||||
user_pref("browser.startup.page", 0); // use about:blank, not browser.startup.homepage
|
||||
@ -56,13 +95,25 @@ user_pref("browser.tabs.disableBackgroundZombification", true);
|
||||
// Don't use auto-enabled e10s
|
||||
user_pref("browser.tabs.remote.autostart", false);
|
||||
// Make sure Translation won't hit the network.
|
||||
user_pref("browser.translation.bing.authURL", "http://{server}/browser/browser/components/translation/test/bing.sjs");
|
||||
user_pref("browser.translation.bing.translateArrayURL", "http://{server}/browser/browser/components/translation/test/bing.sjs");
|
||||
user_pref(
|
||||
"browser.translation.bing.authURL",
|
||||
"http://{server}/browser/browser/components/translation/test/bing.sjs"
|
||||
);
|
||||
user_pref(
|
||||
"browser.translation.bing.translateArrayURL",
|
||||
"http://{server}/browser/browser/components/translation/test/bing.sjs"
|
||||
);
|
||||
user_pref("browser.translation.engine", "Bing");
|
||||
user_pref("browser.translation.yandex.translateURLOverride", "http://{server}/browser/browser/components/translation/test/yandex.sjs");
|
||||
user_pref(
|
||||
"browser.translation.yandex.translateURLOverride",
|
||||
"http://{server}/browser/browser/components/translation/test/yandex.sjs"
|
||||
);
|
||||
user_pref("browser.ui.layout.tablet", 0); // force tablet UI off
|
||||
// Ensure UITour won't hit the network
|
||||
user_pref("browser.uitour.pinnedTabUrl", "http://{server}/uitour-dummy/pinnedTab");
|
||||
user_pref(
|
||||
"browser.uitour.pinnedTabUrl",
|
||||
"http://{server}/uitour-dummy/pinnedTab"
|
||||
);
|
||||
user_pref("browser.uitour.url", "http://{server}/uitour-dummy/tour");
|
||||
// Turn off Merino suggestions in the location bar so as not to trigger network
|
||||
// connections.
|
||||
@ -77,12 +128,18 @@ user_pref("browser.fixup.domainsuffixwhitelist.test", true);
|
||||
user_pref("browser.warnOnQuit", false);
|
||||
// Enable webapps testing mode, which bypasses native installation.
|
||||
user_pref("browser.webapps.testing", true);
|
||||
user_pref("captivedetect.canonicalURL", "http://{server}/captive-detect/success.txt");
|
||||
user_pref(
|
||||
"captivedetect.canonicalURL",
|
||||
"http://{server}/captive-detect/success.txt"
|
||||
);
|
||||
// Enable android logcat for better diagnostics on beta/release
|
||||
user_pref("consoleservice.logcat", true);
|
||||
// Point Firefox Health Report at a local server. We don't care if it actually
|
||||
// works. It just can't hit the default production endpoint.
|
||||
user_pref("datareporting.healthreport.documentServerURI", "http://{server}/healthreport/");
|
||||
user_pref(
|
||||
"datareporting.healthreport.documentServerURI",
|
||||
"http://{server}/healthreport/"
|
||||
);
|
||||
user_pref("datareporting.healthreport.uploadEnabled", false);
|
||||
user_pref("devtools.browsertoolbox.panel", "jsdebugger");
|
||||
user_pref("devtools.debugger.remote-port", 6023);
|
||||
@ -106,25 +163,49 @@ user_pref("dom.successive_dialog_time_limit", 0);
|
||||
// use an additional pref here to allow automation to use the "normal" behavior.
|
||||
user_pref("dom.use_xbl_scopes_for_remote_xul", true);
|
||||
user_pref("extensions.autoDisableScopes", 0);
|
||||
user_pref("extensions.blocklist.detailsURL", "http://{server}/extensions-dummy/blocklistDetailsURL");
|
||||
user_pref("extensions.blocklist.itemURL", "http://{server}/extensions-dummy/blocklistItemURL");
|
||||
user_pref(
|
||||
"extensions.blocklist.detailsURL",
|
||||
"http://{server}/extensions-dummy/blocklistDetailsURL"
|
||||
);
|
||||
user_pref(
|
||||
"extensions.blocklist.itemURL",
|
||||
"http://{server}/extensions-dummy/blocklistItemURL"
|
||||
);
|
||||
// XPI extensions are required for test harnesses to load
|
||||
user_pref("extensions.defaultProviders.enabled", true);
|
||||
// Disable metadata caching for installed add-ons by default
|
||||
user_pref("extensions.getAddons.cache.enabled", false);
|
||||
// Make sure AddonRepository won't hit the network
|
||||
user_pref("extensions.getAddons.get.url", "http://{server}/extensions-dummy/repositoryGetURL");
|
||||
user_pref("extensions.getAddons.search.browseURL", "http://{server}/extensions-dummy/repositoryBrowseURL");
|
||||
user_pref("extensions.hotfix.url", "http://{server}/extensions-dummy/hotfixURL");
|
||||
user_pref(
|
||||
"extensions.getAddons.get.url",
|
||||
"http://{server}/extensions-dummy/repositoryGetURL"
|
||||
);
|
||||
user_pref(
|
||||
"extensions.getAddons.search.browseURL",
|
||||
"http://{server}/extensions-dummy/repositoryBrowseURL"
|
||||
);
|
||||
user_pref(
|
||||
"extensions.hotfix.url",
|
||||
"http://{server}/extensions-dummy/hotfixURL"
|
||||
);
|
||||
// Disable intalling any distribution add-ons
|
||||
user_pref("extensions.installDistroAddons", false);
|
||||
// Disable Screenshots by default for now
|
||||
user_pref("extensions.screenshots.disabled", true);
|
||||
user_pref("extensions.systemAddon.update.url", "http://{server}/dummy-system-addons.xml");
|
||||
user_pref(
|
||||
"extensions.systemAddon.update.url",
|
||||
"http://{server}/dummy-system-addons.xml"
|
||||
);
|
||||
user_pref("extensions.systemAddon.update.enabled", false);
|
||||
user_pref("extensions.update.background.url", "http://{server}/extensions-dummy/updateBackgroundURL");
|
||||
user_pref(
|
||||
"extensions.update.background.url",
|
||||
"http://{server}/extensions-dummy/updateBackgroundURL"
|
||||
);
|
||||
// Point update checks to the local testing server for fast failures
|
||||
user_pref("extensions.update.url", "http://{server}/extensions-dummy/updateURL");
|
||||
user_pref(
|
||||
"extensions.update.url",
|
||||
"http://{server}/extensions-dummy/updateURL"
|
||||
);
|
||||
user_pref("findbar.highlightAll", false);
|
||||
user_pref("findbar.modalHighlight", false);
|
||||
// Existing tests assume there is no font size inflation.
|
||||
@ -137,7 +218,10 @@ user_pref("geo.provider.testing", true);
|
||||
user_pref("geo.provider.network.logging.enabled", true);
|
||||
user_pref("geo.provider.network.scan", false);
|
||||
user_pref("geo.provider.network.timeToWaitBeforeSending", 2000);
|
||||
user_pref("geo.provider.network.url", "http://{server}/tests/dom/tests/mochitest/geolocation/network_geolocation.sjs");
|
||||
user_pref(
|
||||
"geo.provider.network.url",
|
||||
"http://{server}/tests/dom/tests/mochitest/geolocation/network_geolocation.sjs"
|
||||
);
|
||||
user_pref("gfx.color_management.force_srgb", true);
|
||||
user_pref("gfx.logging.level", 1);
|
||||
// We don't want to hit the real Firefox Accounts server for tests. We don't
|
||||
@ -157,7 +241,10 @@ user_pref("media.dormant-on-pause-timeout-ms", 0); // Enter dormant immediately
|
||||
// to send decoded video frames from the CDM to Gecko.
|
||||
user_pref("media.eme.chromium-api.video-shmems", 0);
|
||||
// Make sure GMPInstallManager won't hit the network.
|
||||
user_pref("media.gmp-manager.url.override", "http://{server}/dummy-gmp-manager.xml");
|
||||
user_pref(
|
||||
"media.gmp-manager.url.override",
|
||||
"http://{server}/dummy-gmp-manager.xml"
|
||||
);
|
||||
user_pref("media.hls.server.url", "http://{server}/tests/dom/media/test/hls");
|
||||
// Don't block old libavcodec libraries when testing, because our test systems
|
||||
// cannot easily be upgraded.
|
||||
@ -188,7 +275,10 @@ user_pref("network.sntp.pools", "{server}");
|
||||
// relatively long time which may cause unnecessary intermittents and slow down
|
||||
// tests. This, like many things, will stop working correctly in 2038.
|
||||
user_pref("places.database.lastMaintenance", 2147483647);
|
||||
user_pref("privacy.trackingprotection.introURL", "http://{server}/trackingprotection/tour");
|
||||
user_pref(
|
||||
"privacy.trackingprotection.introURL",
|
||||
"http://{server}/trackingprotection/tour"
|
||||
);
|
||||
// Disable all recommended Remote Protocol preferences for Gecko tests.
|
||||
// The prefs recommended by Remote Protocol are typically geared towards
|
||||
// consumer automation; not vendor testing.
|
||||
@ -238,4 +328,3 @@ user_pref("security.data_uri.block_toplevel_data_uri_navigations", false);
|
||||
|
||||
// We use data: to tell the Quitter extension to quit.
|
||||
user_pref("security.data_uri.block_toplevel_data_uri_navigations", false);
|
||||
|
||||
|
@ -55,7 +55,7 @@ user_pref("dom.disable_beforeunload", true);
|
||||
// function assumes this is available.
|
||||
user_pref("dom.animations-api.implicit-keyframes.enabled", true);
|
||||
// Disable high DPI
|
||||
user_pref("layout.css.devPixelsPerPx", "1.0")
|
||||
user_pref("layout.css.devPixelsPerPx", "1.0");
|
||||
// sometime wpt runs test even before the document becomes visible, which would
|
||||
// delay video.play() and cause play() running in wrong order.
|
||||
user_pref("media.block-autoplay-until-in-foreground", false);
|
||||
@ -80,7 +80,10 @@ user_pref("layout.css.font-loading-api.workers.enabled", true);
|
||||
// Enable WebDriver BiDi experimental commands and events during tests.
|
||||
user_pref("remote.experimental.enabled", true);
|
||||
// Disable always partitioning storage with the Storage Access API
|
||||
user_pref("privacy.partition.always_partition_third_party_non_cookie_storage", false);
|
||||
user_pref(
|
||||
"privacy.partition.always_partition_third_party_non_cookie_storage",
|
||||
false
|
||||
);
|
||||
// Disable OCSP checks in WPT (webtransport triggers these occasionally)
|
||||
user_pref("security.OCSP.enabled", 0);
|
||||
// Disable prefers-reduced-motion to ensure that smooth scrolls can be tested.
|
||||
|
@ -6,8 +6,14 @@
|
||||
/* globals user_pref */
|
||||
/* eslint quotes: 0 */
|
||||
user_pref("app.normandy.api_url", "https://%(server)s/selfsupport-dummy/");
|
||||
user_pref("browser.safebrowsing.downloads.remote.url", "https://%(server)s/safebrowsing-dummy");
|
||||
user_pref("extensions.systemAddon.update.url", "http://%(server)s/dummy-system-addons.xml");
|
||||
user_pref(
|
||||
"browser.safebrowsing.downloads.remote.url",
|
||||
"https://%(server)s/safebrowsing-dummy"
|
||||
);
|
||||
user_pref(
|
||||
"extensions.systemAddon.update.url",
|
||||
"http://%(server)s/dummy-system-addons.xml"
|
||||
);
|
||||
// Treat WebExtension API/schema warnings as errors.
|
||||
user_pref("extensions.webextensions.warnings-as-errors", true);
|
||||
// Always use network provider for geolocation tests
|
||||
@ -16,7 +22,10 @@ user_pref("geo.provider.testing", true);
|
||||
user_pref("browser.region.network.url", "");
|
||||
user_pref("geo.provider.network.compare.url", "");
|
||||
user_pref("media.gmp-manager.updateEnabled", false);
|
||||
user_pref("media.gmp-manager.url.override", "http://%(server)s/dummy-gmp-manager.xml");
|
||||
user_pref(
|
||||
"media.gmp-manager.url.override",
|
||||
"http://%(server)s/dummy-gmp-manager.xml"
|
||||
);
|
||||
user_pref("toolkit.telemetry.server", "https://%(server)s/telemetry-dummy");
|
||||
user_pref("telemetry.fog.test.localhost_port", -1);
|
||||
// Prevent Remote Settings to issue non local connections.
|
||||
|
Loading…
Reference in New Issue
Block a user