2013-03-29 00:42:49 +04:00
|
|
|
// Base preferences file used by most test harnesses
|
|
|
|
|
|
|
|
user_pref("browser.console.showInPanel", true);
|
|
|
|
user_pref("browser.dom.window.dump.enabled", true);
|
|
|
|
user_pref("browser.firstrun.show.localepicker", false);
|
|
|
|
user_pref("browser.firstrun.show.uidiscovery", false);
|
|
|
|
user_pref("browser.startup.page", 0); // use about:blank, not browser.startup.homepage
|
2016-12-20 08:37:00 +03:00
|
|
|
user_pref("browser.search.suggest.timeout", 10000); // use a 10s suggestion timeout in tests
|
2013-03-29 00:42:49 +04:00
|
|
|
user_pref("browser.ui.layout.tablet", 0); // force tablet UI off
|
|
|
|
user_pref("dom.allow_scripts_to_close_windows", true);
|
|
|
|
user_pref("dom.disable_open_during_load", false);
|
|
|
|
user_pref("dom.experimental_forms", true); // on for testing
|
2013-09-12 22:11:00 +04:00
|
|
|
user_pref("dom.forms.number", true); // on for testing
|
2013-05-23 17:02:23 +04:00
|
|
|
user_pref("dom.forms.color", true); // on for testing
|
2016-07-04 00:19:00 +03:00
|
|
|
user_pref("dom.forms.datetime", true); // on for testing
|
2017-03-17 06:01:59 +03:00
|
|
|
user_pref("dom.forms.datetime.others", true); // on for testing
|
2013-03-29 00:42:49 +04:00
|
|
|
user_pref("dom.max_script_run_time", 0); // no slow script dialogs
|
|
|
|
user_pref("hangmonitor.timeout", 0); // no hang monitor
|
|
|
|
user_pref("dom.max_chrome_script_run_time", 0);
|
2015-01-17 05:34:47 +03:00
|
|
|
user_pref("dom.ipc.reportProcessHangs", false); // process hang monitor
|
2013-03-29 00:42:49 +04:00
|
|
|
user_pref("dom.popup_maximum", -1);
|
|
|
|
user_pref("dom.send_after_paint_to_content", true);
|
|
|
|
user_pref("dom.successive_dialog_time_limit", 0);
|
|
|
|
user_pref("signed.applets.codebase_principal_support", true);
|
|
|
|
user_pref("browser.shell.checkDefaultBrowser", false);
|
|
|
|
user_pref("shell.checkDefaultClient", false);
|
|
|
|
user_pref("browser.warnOnQuit", false);
|
|
|
|
user_pref("accessibility.typeaheadfind.autostart", false);
|
2016-06-09 14:30:51 +03:00
|
|
|
user_pref("findbar.highlightAll", false);
|
|
|
|
user_pref("findbar.modalHighlight", false);
|
2013-03-29 00:42:49 +04:00
|
|
|
user_pref("javascript.options.showInConsole", true);
|
2014-11-27 02:40:00 +03:00
|
|
|
user_pref("devtools.browsertoolbox.panel", "jsdebugger");
|
2013-03-29 00:42:49 +04:00
|
|
|
user_pref("devtools.debugger.remote-port", 6023);
|
2016-01-24 04:13:58 +03:00
|
|
|
user_pref("devtools.devedition.promo.enabled", false);
|
2013-03-29 00:42:49 +04:00
|
|
|
user_pref("browser.EULA.override", true);
|
|
|
|
user_pref("gfx.color_management.force_srgb", true);
|
2016-12-16 20:19:40 +03:00
|
|
|
user_pref("gfx.logging.level", 1);
|
2013-03-29 00:42:49 +04:00
|
|
|
user_pref("network.manage-offline-status", false);
|
2014-04-07 19:34:00 +04:00
|
|
|
// Disable speculative connections so they aren't reported as leaking when they're hanging around.
|
|
|
|
user_pref("network.http.speculative-parallel-limit", 0);
|
2013-03-29 00:42:49 +04:00
|
|
|
user_pref("dom.min_background_timeout_value", 1000);
|
|
|
|
user_pref("test.mousescroll", true);
|
|
|
|
user_pref("security.default_personal_cert", "Select Automatically"); // Need to client auth test be w/o any dialogs
|
|
|
|
user_pref("network.http.prompt-temp-redirect", false);
|
2016-10-03 10:18:05 +03:00
|
|
|
user_pref("media.preload.default", 2); // default = metadata
|
|
|
|
user_pref("media.preload.auto", 3); // auto = enough
|
2014-08-22 07:56:54 +04:00
|
|
|
user_pref("media.cache_size", 1000);
|
2013-03-29 00:42:49 +04:00
|
|
|
user_pref("media.volume_scale", "0.01");
|
2016-10-03 10:18:05 +03:00
|
|
|
user_pref("media.test.dumpDebugInfo", true);
|
2016-11-02 11:56:38 +03:00
|
|
|
user_pref("media.dormant-on-pause-timeout-ms", 0); // Enter dormant immediately without waiting for timeout.
|
2017-03-17 06:56:53 +03:00
|
|
|
user_pref("media.suspend-bkgnd-video.enabled", false);
|
2013-03-29 00:42:49 +04:00
|
|
|
user_pref("security.warn_viewing_mixed", false);
|
|
|
|
user_pref("app.update.enabled", false);
|
|
|
|
user_pref("app.update.staging.enabled", false);
|
2015-02-03 19:18:13 +03:00
|
|
|
user_pref("app.update.url.android", "");
|
2014-07-18 05:46:10 +04:00
|
|
|
// Make sure GMPInstallManager won't hit the network.
|
2014-08-26 00:23:47 +04:00
|
|
|
user_pref("media.gmp-manager.url.override", "http://%(server)s/dummy-gmp-manager.xml");
|
2016-09-27 13:57:41 +03:00
|
|
|
user_pref("media.gmp-manager.updateEnabled", false);
|
2013-03-29 00:42:49 +04:00
|
|
|
user_pref("dom.w3c_touch_events.enabled", 1);
|
2016-08-03 19:00:22 +03:00
|
|
|
user_pref("layout.accessiblecaret.enabled_on_touch", false);
|
2013-03-29 00:42:49 +04:00
|
|
|
user_pref("dom.webcomponents.enabled", true);
|
2016-07-25 00:38:00 +03:00
|
|
|
user_pref("dom.webcomponents.customelements.enabled", true);
|
2015-02-23 15:06:28 +03:00
|
|
|
user_pref("dom.htmlimports.enabled", true);
|
2013-03-29 00:42:49 +04:00
|
|
|
// Existing tests assume there is no font size inflation.
|
|
|
|
user_pref("font.size.inflation.emPerLine", 0);
|
|
|
|
user_pref("font.size.inflation.minTwips", 0);
|
2017-01-20 09:27:18 +03:00
|
|
|
// Disable the caret blinking so we get stable snapshot
|
|
|
|
user_pref("ui.caretBlinkTime", -1);
|
2013-03-29 00:42:49 +04:00
|
|
|
|
2014-04-17 19:08:35 +04:00
|
|
|
// AddonManager tests require that the experiments provider be present.
|
2014-03-20 02:02:58 +04:00
|
|
|
user_pref("experiments.supported", true);
|
2014-04-17 17:47:37 +04:00
|
|
|
// Point the manifest at something local so we don't risk it hitting production
|
|
|
|
// data and installing experiments that may vary over time.
|
|
|
|
user_pref("experiments.manifest.uri", "http://%(server)s/experiments-dummy/manifest");
|
2014-03-20 02:02:58 +04:00
|
|
|
|
2016-04-29 22:19:43 +03:00
|
|
|
// Don't allow background tabs to be zombified, otherwise for tests that
|
|
|
|
// open additional tabs, the test harness tab itself might get unloaded.
|
|
|
|
user_pref("browser.tabs.disableBackgroundZombification", true);
|
|
|
|
|
2013-03-29 00:42:49 +04:00
|
|
|
// Only load extensions from the application and user profile
|
|
|
|
// AddonManager.SCOPE_PROFILE + AddonManager.SCOPE_APPLICATION
|
|
|
|
user_pref("extensions.enabledScopes", 5);
|
2015-06-05 21:46:11 +03:00
|
|
|
user_pref("extensions.autoDisableScopes", 0);
|
2013-03-29 00:42:49 +04:00
|
|
|
// Disable metadata caching for installed add-ons by default
|
|
|
|
user_pref("extensions.getAddons.cache.enabled", false);
|
|
|
|
// Disable intalling any distribution add-ons
|
|
|
|
user_pref("extensions.installDistroAddons", false);
|
2013-12-12 04:23:36 +04:00
|
|
|
// XPI extensions are required for test harnesses to load
|
|
|
|
user_pref("extensions.defaultProviders.enabled", true);
|
2015-03-31 21:32:40 +03:00
|
|
|
user_pref("xpinstall.signatures.required", false);
|
2013-03-29 00:42:49 +04:00
|
|
|
|
|
|
|
user_pref("geo.wifi.uri", "http://%(server)s/tests/dom/tests/mochitest/geolocation/network_geolocation.sjs");
|
2014-06-13 22:08:40 +04:00
|
|
|
user_pref("geo.wifi.timeToWaitBeforeSending", 2000);
|
2014-03-02 11:46:02 +04:00
|
|
|
user_pref("geo.wifi.scan", false);
|
2013-10-11 19:06:44 +04:00
|
|
|
user_pref("geo.wifi.logging.enabled", true);
|
2013-03-29 00:42:49 +04:00
|
|
|
|
2016-03-18 03:11:22 +03:00
|
|
|
// Prevent connection to the push server for tests.
|
|
|
|
user_pref("dom.push.connection.enabled", false);
|
|
|
|
|
2013-03-29 00:42:49 +04:00
|
|
|
// Make url-classifier updates so rare that they won't affect tests
|
|
|
|
user_pref("urlclassifier.updateinterval", 172800);
|
|
|
|
// Point the url-classifier to the local testing server for fast failures
|
2016-01-20 00:56:49 +03:00
|
|
|
user_pref("browser.safebrowsing.downloads.remote.url", "http://%(server)s/safebrowsing-dummy/update");
|
2015-09-08 09:22:10 +03:00
|
|
|
user_pref("browser.safebrowsing.provider.google.gethashURL", "http://%(server)s/safebrowsing-dummy/gethash");
|
|
|
|
user_pref("browser.safebrowsing.provider.google.updateURL", "http://%(server)s/safebrowsing-dummy/update");
|
2016-11-20 10:10:19 +03:00
|
|
|
user_pref("browser.safebrowsing.provider.google4.gethashURL", "http://%(server)s/safebrowsing4-dummy/gethash");
|
|
|
|
user_pref("browser.safebrowsing.provider.google4.updateURL", "http://%(server)s/safebrowsing4-dummy/update");
|
2015-09-08 09:22:10 +03:00
|
|
|
user_pref("browser.safebrowsing.provider.mozilla.gethashURL", "http://%(server)s/safebrowsing-dummy/gethash");
|
|
|
|
user_pref("browser.safebrowsing.provider.mozilla.updateURL", "http://%(server)s/safebrowsing-dummy/update");
|
2015-07-16 23:38:20 +03:00
|
|
|
user_pref("privacy.trackingprotection.introURL", "http://%(server)s/trackingprotection/tour");
|
2013-03-29 00:42:49 +04:00
|
|
|
// Point update checks to the local testing server for fast failures
|
|
|
|
user_pref("extensions.update.url", "http://%(server)s/extensions-dummy/updateURL");
|
|
|
|
user_pref("extensions.update.background.url", "http://%(server)s/extensions-dummy/updateBackgroundURL");
|
2016-01-25 17:55:57 +03:00
|
|
|
user_pref("extensions.blocklist.detailsURL", "http://%(server)s/extensions-dummy/blocklistDetailsURL");
|
|
|
|
user_pref("extensions.blocklist.itemURL", "http://%(server)s/extensions-dummy/blocklistItemURL");
|
2013-03-29 00:42:49 +04:00
|
|
|
user_pref("extensions.blocklist.url", "http://%(server)s/extensions-dummy/blocklistURL");
|
|
|
|
user_pref("extensions.hotfix.url", "http://%(server)s/extensions-dummy/hotfixURL");
|
2015-09-10 20:57:39 +03:00
|
|
|
user_pref("extensions.systemAddon.update.url", "http://%(server)s/dummy-system-addons.xml");
|
2013-03-29 00:42:49 +04:00
|
|
|
// Turn off extension updates so they don't bother tests
|
|
|
|
user_pref("extensions.update.enabled", false);
|
|
|
|
// Make sure opening about:addons won't hit the network
|
|
|
|
user_pref("extensions.webservice.discoverURL", "http://%(server)s/extensions-dummy/discoveryURL");
|
|
|
|
// Make sure AddonRepository won't hit the network
|
|
|
|
user_pref("extensions.getAddons.maxResults", 0);
|
|
|
|
user_pref("extensions.getAddons.get.url", "http://%(server)s/extensions-dummy/repositoryGetURL");
|
|
|
|
user_pref("extensions.getAddons.getWithPerformance.url", "http://%(server)s/extensions-dummy/repositoryGetWithPerformanceURL");
|
|
|
|
user_pref("extensions.getAddons.search.browseURL", "http://%(server)s/extensions-dummy/repositoryBrowseURL");
|
|
|
|
user_pref("extensions.getAddons.search.url", "http://%(server)s/extensions-dummy/repositorySearchURL");
|
2016-05-19 13:51:13 +03:00
|
|
|
// Ensure blocklist updates don't hit the network
|
|
|
|
user_pref("services.settings.server", "http://%(server)s/dummy-kinto/v1");
|
2014-08-13 19:51:50 +04:00
|
|
|
// Make sure SNTP requests don't hit the network
|
|
|
|
user_pref("network.sntp.pools", "%(server)s");
|
|
|
|
// We know the SNTP request will fail, since localhost isn't listening on
|
|
|
|
// port 135. The default number of retries (10) is excessive, but retrying
|
|
|
|
// at least once will mean that codepath is still tested in automation.
|
|
|
|
user_pref("network.sntp.maxRetryCount", 1);
|
2013-03-29 00:42:49 +04:00
|
|
|
|
2015-10-29 18:42:01 +03:00
|
|
|
// Make sure the notification permission migration test doesn't hit the network.
|
2015-11-10 20:29:47 +03:00
|
|
|
user_pref("app.support.baseURL", "http://%(server)s/support-dummy/");
|
2015-10-29 18:42:01 +03:00
|
|
|
|
2013-03-29 00:42:49 +04:00
|
|
|
// Existing tests don't wait for the notification button security delay
|
|
|
|
user_pref("security.notification_enable_delay", 0);
|
|
|
|
|
|
|
|
// Make enablePrivilege continue to work for test code. :-(
|
|
|
|
user_pref("security.turn_off_all_security_so_that_viruses_can_take_over_this_computer", true);
|
|
|
|
|
2013-05-07 19:19:46 +04:00
|
|
|
// In the default configuration, we bypass XBL scopes (a security feature) for
|
|
|
|
// domains whitelisted for remote XUL, so that intranet apps and such continue
|
|
|
|
// to work without major rewrites. However, we also use the whitelist mechanism
|
|
|
|
// to run our XBL tests in automation, in which case we really want to be testing
|
|
|
|
// the configuration that we ship to users without special whitelisting. So we
|
|
|
|
// use an additional pref here to allow automation to use the "normal" behavior.
|
|
|
|
user_pref("dom.use_xbl_scopes_for_remote_xul", true);
|
|
|
|
|
2016-06-09 20:23:57 +03:00
|
|
|
user_pref("captivedetect.canonicalURL", "http://%(server)s/captive-detect/success.txt");
|
2013-03-29 00:42:49 +04:00
|
|
|
// Get network events.
|
|
|
|
user_pref("network.activity.blipIntervalMilliseconds", 250);
|
|
|
|
|
2014-07-10 01:32:29 +04:00
|
|
|
// We do not wish to display datareporting policy notifications as it might
|
|
|
|
// cause other tests to fail. Tests that wish to test the notification functionality
|
|
|
|
// should explicitly disable this pref.
|
|
|
|
user_pref("datareporting.policy.dataSubmissionPolicyBypassNotification", true);
|
2013-03-29 00:42:49 +04:00
|
|
|
|
|
|
|
// 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)s/healthreport/");
|
2016-01-27 03:03:00 +03:00
|
|
|
user_pref("datareporting.healthreport.about.reportUrl", "http://%(server)s/abouthealthreport/v4/");
|
2013-03-29 00:42:49 +04:00
|
|
|
|
|
|
|
// Make sure CSS error reporting is enabled for tests
|
|
|
|
user_pref("layout.css.report_errors", true);
|
2013-05-14 05:32:03 +04:00
|
|
|
|
2016-11-29 01:00:20 +03:00
|
|
|
// Enable CSS Grid 'subgrid' feature for testing
|
2016-01-27 19:02:13 +03:00
|
|
|
user_pref("layout.css.grid-template-subgrid-value.enabled", true);
|
2014-02-27 11:45:29 +04:00
|
|
|
|
2015-06-04 17:38:00 +03:00
|
|
|
// Enable CSS 'contain' for testing
|
|
|
|
user_pref("layout.css.contain.enabled", true);
|
|
|
|
|
2016-07-28 10:23:36 +03:00
|
|
|
// Enable CSS initial-letter for testing
|
|
|
|
user_pref("layout.css.initial-letter.enabled", true);
|
|
|
|
|
2015-10-07 06:56:47 +03:00
|
|
|
// Enable webkit prefixed CSS features for testing
|
|
|
|
user_pref("layout.css.prefixes.webkit", true);
|
|
|
|
|
2016-01-08 23:47:44 +03:00
|
|
|
// Enable -webkit-{min|max}-device-pixel-ratio media queries for testing
|
|
|
|
user_pref("layout.css.prefixes.device-pixel-ratio-webkit", true);
|
|
|
|
|
2016-07-22 10:40:01 +03:00
|
|
|
// Enable CSS shape-outside for testing
|
|
|
|
user_pref("layout.css.shape-outside.enabled", true);
|
|
|
|
|
2017-03-01 15:58:25 +03:00
|
|
|
// Enable CSS text-justify for testing
|
|
|
|
user_pref("layout.css.text-justify.enabled", true);
|
|
|
|
|
2014-07-23 01:01:50 +04:00
|
|
|
// Disable spammy layout warnings because they pollute test logs
|
|
|
|
user_pref("layout.spammy_warnings.enabled", false);
|
|
|
|
|
2014-09-18 10:20:36 +04:00
|
|
|
// Enable Media Source Extensions for testing
|
2014-11-26 05:33:41 +03:00
|
|
|
user_pref("media.mediasource.mp4.enabled", true);
|
2015-08-03 14:38:51 +03:00
|
|
|
user_pref("media.mediasource.webm.enabled", true);
|
2014-09-18 10:20:36 +04:00
|
|
|
|
2013-05-29 17:37:11 +04:00
|
|
|
// Make sure the disk cache doesn't get auto disabled
|
|
|
|
user_pref("network.http.bypass-cachelock-threshold", 200000);
|
2013-04-09 16:43:24 +04:00
|
|
|
|
|
|
|
// Enable Gamepad
|
|
|
|
user_pref("dom.gamepad.enabled", true);
|
2013-06-19 23:05:47 +04:00
|
|
|
user_pref("dom.gamepad.non_standard_events.enabled", true);
|
2013-06-24 03:22:10 +04:00
|
|
|
|
2013-07-01 17:43:17 +04:00
|
|
|
// Always use network provider for geolocation tests
|
|
|
|
// so we bypass the OSX dialog raised by the corelocation provider
|
|
|
|
user_pref("geo.provider.testing", true);
|
2013-07-23 11:40:16 +04:00
|
|
|
|
|
|
|
// Background thumbnails in particular cause grief, and disabling thumbnails
|
|
|
|
// in general can't hurt - we re-enable them when tests need them.
|
2013-08-08 03:52:01 +04:00
|
|
|
user_pref("browser.pagethumbnails.capturing_disabled", true);
|
2013-09-10 04:13:58 +04:00
|
|
|
|
|
|
|
// 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);
|
2014-01-10 02:02:47 +04:00
|
|
|
|
2014-08-21 23:05:48 +04:00
|
|
|
// Assume the about:newtab page's intro panels have been shown to not depend on
|
|
|
|
// which test runs first and happens to open about:newtab
|
|
|
|
user_pref("browser.newtabpage.introShown", true);
|
|
|
|
|
2014-01-25 08:51:30 +04:00
|
|
|
// Enable webapps testing mode, which bypasses native installation.
|
|
|
|
user_pref("browser.webapps.testing", true);
|
2014-01-31 20:59:48 +04:00
|
|
|
|
|
|
|
// Disable android snippets
|
|
|
|
user_pref("browser.snippets.enabled", false);
|
2014-02-22 21:41:31 +04:00
|
|
|
user_pref("browser.snippets.syncPromo.enabled", false);
|
2014-08-23 02:07:40 +04:00
|
|
|
user_pref("browser.snippets.firstrunHomepage.enabled", false);
|
2014-02-18 22:06:06 +04:00
|
|
|
|
2014-06-12 23:14:43 +04:00
|
|
|
// Disable useragent updates.
|
|
|
|
user_pref("general.useragent.updates.enabled", false);
|
2017-03-17 23:39:27 +03:00
|
|
|
user_pref("general.useragent.updates.url", "https://example.com/0/%%APP_ID%%");
|
2014-06-12 23:14:43 +04:00
|
|
|
|
2014-06-16 19:47:05 +04:00
|
|
|
// Disable webapp updates. Yes, it is supposed to be an integer.
|
|
|
|
user_pref("browser.webapps.checkForUpdates", 0);
|
|
|
|
|
2016-10-20 06:27:55 +03:00
|
|
|
user_pref("dom.presentation.testing.simulate-receiver", false);
|
2015-04-15 06:01:02 +03:00
|
|
|
|
2014-04-16 01:14:51 +04:00
|
|
|
// 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')
|
2014-04-17 19:54:41 +04:00
|
|
|
|
|
|
|
// We want to collect telemetry, but we don't want to send in the results.
|
|
|
|
user_pref('toolkit.telemetry.server', 'https://%(server)s/telemetry-dummy/');
|
2014-05-10 03:23:17 +04:00
|
|
|
|
2015-02-26 01:54:32 +03:00
|
|
|
// A couple of preferences with default values to test that telemetry preference
|
|
|
|
// watching is working.
|
|
|
|
user_pref('toolkit.telemetry.test.pref1', true);
|
|
|
|
user_pref('toolkit.telemetry.test.pref2', false);
|
|
|
|
|
2014-05-10 03:23:17 +04:00
|
|
|
// We don't want to hit the real Firefox Accounts server for tests. We don't
|
|
|
|
// actually need a functioning FxA server, so just set it to something that
|
|
|
|
// resolves and accepts requests, even if they all fail.
|
|
|
|
user_pref('identity.fxaccounts.auth.uri', 'https://%(server)s/fxa-dummy/');
|
2014-05-29 20:51:28 +04:00
|
|
|
|
2014-06-25 19:32:06 +04:00
|
|
|
// Ditto for all the other Firefox accounts URIs used for about:accounts et al.:
|
|
|
|
user_pref("identity.fxaccounts.remote.signup.uri", "https://%(server)s/fxa-signup");
|
|
|
|
user_pref("identity.fxaccounts.remote.force_auth.uri", "https://%(server)s/fxa-force-auth");
|
|
|
|
user_pref("identity.fxaccounts.remote.signin.uri", "https://%(server)s/fxa-signin");
|
|
|
|
user_pref("identity.fxaccounts.settings.uri", "https://%(server)s/fxa-settings");
|
2015-04-11 15:23:08 +03:00
|
|
|
user_pref('identity.fxaccounts.remote.webchannel.uri', 'https://%(server)s/');
|
2014-06-25 19:32:06 +04:00
|
|
|
|
2016-01-13 07:55:00 +03:00
|
|
|
// We don't want browser tests to perform FxA device registration.
|
|
|
|
user_pref('identity.fxaccounts.skipDeviceRegistration', true);
|
|
|
|
|
2015-10-05 23:18:24 +03:00
|
|
|
// Increase the APZ content response timeout in tests to 1 minute.
|
2015-07-23 00:03:59 +03:00
|
|
|
// This is to accommodate the fact that test environments tends to be slower
|
|
|
|
// than production environments (with the b2g emulator being the slowest of them
|
|
|
|
// all), resulting in the production timeout value sometimes being exceeded
|
2015-10-05 23:18:24 +03:00
|
|
|
// and causing false-positive test failures. See bug 1176798, bug 1177018,
|
|
|
|
// bug 1210465.
|
|
|
|
user_pref("apz.content_response_timeout", 60000);
|
2015-07-23 00:03:59 +03:00
|
|
|
|
2014-10-30 14:52:00 +03:00
|
|
|
// Make sure SSL Error reports don't hit the network
|
2016-01-13 17:29:54 +03:00
|
|
|
user_pref("security.ssl.errorReporting.url", "https://example.com/browser/browser/base/content/test/general/ssl_error_reports.sjs?succeed");
|
2014-10-30 14:52:00 +03:00
|
|
|
|
2014-06-19 18:56:02 +04:00
|
|
|
// Make sure Translation won't hit the network.
|
|
|
|
user_pref("browser.translation.bing.authURL", "http://%(server)s/browser/browser/components/translation/test/bing.sjs");
|
|
|
|
user_pref("browser.translation.bing.translateArrayURL", "http://%(server)s/browser/browser/components/translation/test/bing.sjs");
|
2015-06-04 23:49:55 +03:00
|
|
|
user_pref("browser.translation.yandex.translateURLOverride", "http://%(server)s/browser/browser/components/translation/test/yandex.sjs");
|
|
|
|
user_pref("browser.translation.engine", "bing");
|
2014-07-10 20:41:44 +04:00
|
|
|
|
2014-08-05 03:02:20 +04:00
|
|
|
// Make sure we don't try to load snippets from the network.
|
|
|
|
user_pref("browser.aboutHomeSnippets.updateUrl", "nonexistent://test");
|
|
|
|
|
2014-08-09 03:40:40 +04:00
|
|
|
// Don't fetch or send directory tiles data from real servers
|
|
|
|
user_pref("browser.newtabpage.directory.source", 'data:application/json,{"testing":1}');
|
|
|
|
user_pref("browser.newtabpage.directory.ping", "");
|
|
|
|
|
2014-08-27 04:38:08 +04:00
|
|
|
// Ensure UITour won't hit the network
|
|
|
|
user_pref("browser.uitour.pinnedTabUrl", "http://%(server)s/uitour-dummy/pinnedTab");
|
|
|
|
user_pref("browser.uitour.url", "http://%(server)s/uitour-dummy/tour");
|
2014-09-10 15:53:10 +04:00
|
|
|
|
2014-12-23 14:17:12 +03:00
|
|
|
// Tell the search service we are running in the US. This also has the desired
|
|
|
|
// side-effect of preventing our geoip lookup.
|
|
|
|
user_pref("browser.search.isUS", true);
|
|
|
|
user_pref("browser.search.countryCode", "US");
|
2015-07-10 22:06:24 +03:00
|
|
|
// This will prevent HTTP requests for region defaults.
|
|
|
|
user_pref("browser.search.geoSpecificDefaults", false);
|
2014-11-21 02:27:10 +03:00
|
|
|
|
2016-10-11 02:14:56 +03:00
|
|
|
// Make sure self support doesn't hit the network.
|
2017-01-03 20:41:51 +03:00
|
|
|
user_pref("browser.selfsupport.url", "https://example.com/selfsupport-dummy/");
|
|
|
|
user_pref("extensions.shield-recipe-client.api_url", "https://example.com/selfsupport-dummy/");
|
2015-01-09 13:18:00 +03:00
|
|
|
|
2014-09-24 07:59:11 +04:00
|
|
|
user_pref("media.eme.enabled", true);
|
|
|
|
|
2017-04-26 06:46:09 +03:00
|
|
|
// Set the number of shmems the PChromiumCDM protocol pre-allocates to 0,
|
|
|
|
// so that we test the case where we under-estimate how many shmems we need
|
|
|
|
// to send decoded video frames from the CDM to Gecko.
|
|
|
|
user_pref("media.eme.chromium-api.video-shmems", 0);
|
|
|
|
|
2015-09-30 01:00:33 +03:00
|
|
|
user_pref("media.autoplay.enabled", true);
|
|
|
|
|
2014-11-05 07:15:16 +03:00
|
|
|
// Don't use auto-enabled e10s
|
|
|
|
user_pref("browser.tabs.remote.autostart.1", false);
|
2015-04-06 21:06:46 +03:00
|
|
|
user_pref("browser.tabs.remote.autostart.2", false);
|
2016-10-13 23:12:50 +03:00
|
|
|
// Don't show a delay when hiding the audio indicator during tests
|
|
|
|
user_pref("browser.tabs.delayHidingAudioPlayingIconMS", 0);
|
2014-12-18 21:52:00 +03:00
|
|
|
// Don't forceably kill content processes after a timeout
|
|
|
|
user_pref("dom.ipc.tabs.shutdownTimeoutSecs", 0);
|
2015-03-26 10:11:08 +03:00
|
|
|
|
2016-03-02 19:50:55 +03:00
|
|
|
// Don't block add-ons for e10s
|
|
|
|
user_pref("extensions.e10sBlocksEnabling", false);
|
|
|
|
|
2015-04-01 06:01:04 +03:00
|
|
|
// Make tests run consistently on DevEdition (which has a lightweight theme
|
|
|
|
// selected by default).
|
|
|
|
user_pref("lightweightThemes.selectedThemeID", "");
|
2015-04-16 18:22:16 +03:00
|
|
|
|
2015-05-12 23:24:58 +03:00
|
|
|
// Enable speech synth test service, and disable built in platform services.
|
|
|
|
user_pref("media.webspeech.synth.test", true);
|
2015-06-11 23:20:48 +03:00
|
|
|
|
|
|
|
// Turn off search suggestions in the location bar so as not to trigger network
|
|
|
|
// connections.
|
|
|
|
user_pref("browser.urlbar.suggest.searches", false);
|
2015-07-17 12:25:25 +03:00
|
|
|
|
2015-08-07 06:13:00 +03:00
|
|
|
// Turn off the location bar search suggestions opt-in. It interferes with
|
|
|
|
// tests that don't expect it to be there.
|
|
|
|
user_pref("browser.urlbar.userMadeSearchSuggestionsChoice", true);
|
|
|
|
|
2017-01-02 03:28:31 +03:00
|
|
|
user_pref("browser.urlbar.usepreloadedtopurls.enabled", false);
|
|
|
|
|
2015-07-17 12:25:25 +03:00
|
|
|
user_pref("dom.audiochannel.mutedByDefault", false);
|
2016-01-06 02:37:06 +03:00
|
|
|
|
|
|
|
user_pref("webextensions.tests", true);
|
2016-01-25 17:55:57 +03:00
|
|
|
user_pref("startup.homepage_welcome_url", "about:blank");
|
2016-02-18 21:47:59 +03:00
|
|
|
user_pref("startup.homepage_welcome_url.additional", "");
|
2016-09-29 16:16:33 +03:00
|
|
|
|
|
|
|
// For Firefox 52 only, ESR will support non-Flash plugins while release will
|
|
|
|
// not, so we keep testing the non-Flash pathways
|
|
|
|
user_pref("plugin.load_flash_only", false);
|
2016-10-05 08:46:22 +03:00
|
|
|
|
|
|
|
// Don't block old libavcodec libraries when testing, because our test systems
|
|
|
|
// cannot easily be upgraded.
|
|
|
|
user_pref("media.libavcodec.allow-obsolete", true);
|
2016-11-10 15:47:07 +03:00
|
|
|
|
2016-11-24 05:24:06 +03:00
|
|
|
user_pref("media.openUnsupportedTypeWithExternalApp", false);
|
|
|
|
|
2016-11-10 15:47:07 +03:00
|
|
|
// Disable password capture, so that mochitests that include forms aren't
|
|
|
|
// influenced by the presence of the persistent doorhanger notification.
|
|
|
|
user_pref("signon.rememberSignons", false);
|
2017-02-11 15:35:08 +03:00
|
|
|
|
|
|
|
// Enable form autofill feature testing.
|
|
|
|
user_pref("browser.formautofill.experimental", true);
|
2017-03-06 21:38:06 +03:00
|
|
|
|
|
|
|
// Disable all recommended Marionette preferences for Gecko tests.
|
|
|
|
// The prefs recommended by Marionette are typically geared towards
|
|
|
|
// consumer automation; not vendor testing.
|
|
|
|
user_pref("marionette.prefs.recommended", false);
|
2017-03-10 15:34:54 +03:00
|
|
|
|
|
|
|
// Disable Screenshots by default for now
|
|
|
|
user_pref("extensions.screenshots.system-disabled", true);
|