testing/profiles/prefs_general.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/testing/profiles/prefs_general.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,210 @@
     1.4 +// Base preferences file used by most test harnesses
     1.5 +
     1.6 +user_pref("browser.console.showInPanel", true);
     1.7 +user_pref("browser.dom.window.dump.enabled", true);
     1.8 +user_pref("browser.firstrun.show.localepicker", false);
     1.9 +user_pref("browser.firstrun.show.uidiscovery", false);
    1.10 +user_pref("browser.startup.page", 0); // use about:blank, not browser.startup.homepage
    1.11 +user_pref("browser.ui.layout.tablet", 0); // force tablet UI off
    1.12 +user_pref("dom.allow_scripts_to_close_windows", true);
    1.13 +user_pref("dom.disable_open_during_load", false);
    1.14 +user_pref("dom.experimental_forms", true); // on for testing
    1.15 +user_pref("dom.forms.number", true); // on for testing
    1.16 +user_pref("dom.forms.color", true); // on for testing
    1.17 +user_pref("dom.max_script_run_time", 0); // no slow script dialogs
    1.18 +user_pref("hangmonitor.timeout", 0); // no hang monitor
    1.19 +user_pref("dom.max_chrome_script_run_time", 0);
    1.20 +user_pref("dom.popup_maximum", -1);
    1.21 +user_pref("dom.send_after_paint_to_content", true);
    1.22 +user_pref("dom.successive_dialog_time_limit", 0);
    1.23 +user_pref("signed.applets.codebase_principal_support", true);
    1.24 +user_pref("browser.shell.checkDefaultBrowser", false);
    1.25 +user_pref("shell.checkDefaultClient", false);
    1.26 +user_pref("browser.warnOnQuit", false);
    1.27 +user_pref("accessibility.typeaheadfind.autostart", false);
    1.28 +user_pref("javascript.options.showInConsole", true);
    1.29 +user_pref("devtools.errorconsole.enabled", true);
    1.30 +user_pref("devtools.debugger.remote-port", 6023);
    1.31 +user_pref("layout.debug.enable_data_xbl", true);
    1.32 +user_pref("browser.EULA.override", true);
    1.33 +user_pref("gfx.color_management.force_srgb", true);
    1.34 +user_pref("network.manage-offline-status", false);
    1.35 +// Disable speculative connections so they aren't reported as leaking when they're hanging around.
    1.36 +user_pref("network.http.speculative-parallel-limit", 0);
    1.37 +user_pref("dom.min_background_timeout_value", 1000);
    1.38 +user_pref("test.mousescroll", true);
    1.39 +user_pref("security.default_personal_cert", "Select Automatically"); // Need to client auth test be w/o any dialogs
    1.40 +user_pref("network.http.prompt-temp-redirect", false);
    1.41 +user_pref("media.cache_size", 100);
    1.42 +user_pref("media.volume_scale", "0.01");
    1.43 +user_pref("security.warn_viewing_mixed", false);
    1.44 +user_pref("app.update.enabled", false);
    1.45 +user_pref("app.update.staging.enabled", false);
    1.46 +user_pref("browser.panorama.experienced_first_run", true); // Assume experienced
    1.47 +user_pref("dom.w3c_touch_events.enabled", 1);
    1.48 +user_pref("dom.undo_manager.enabled", true);
    1.49 +user_pref("dom.webcomponents.enabled", true);
    1.50 +// Set a future policy version to avoid the telemetry prompt.
    1.51 +user_pref("toolkit.telemetry.prompted", 999);
    1.52 +user_pref("toolkit.telemetry.notifiedOptOut", 999);
    1.53 +// Existing tests assume there is no font size inflation.
    1.54 +user_pref("font.size.inflation.emPerLine", 0);
    1.55 +user_pref("font.size.inflation.minTwips", 0);
    1.56 +
    1.57 +// AddonManager tests require that the experiments provider be present.
    1.58 +user_pref("experiments.supported", true);
    1.59 +user_pref("experiments.logging.level", "Trace");
    1.60 +user_pref("experiments.logging.dump", true);
    1.61 +// Point the manifest at something local so we don't risk it hitting production
    1.62 +// data and installing experiments that may vary over time.
    1.63 +user_pref("experiments.manifest.uri", "http://%(server)s/experiments-dummy/manifest");
    1.64 +
    1.65 +// Only load extensions from the application and user profile
    1.66 +// AddonManager.SCOPE_PROFILE + AddonManager.SCOPE_APPLICATION
    1.67 +user_pref("extensions.enabledScopes", 5);
    1.68 +// Disable metadata caching for installed add-ons by default
    1.69 +user_pref("extensions.getAddons.cache.enabled", false);
    1.70 +// Disable intalling any distribution add-ons
    1.71 +user_pref("extensions.installDistroAddons", false);
    1.72 +// XPI extensions are required for test harnesses to load
    1.73 +user_pref("extensions.defaultProviders.enabled", true);
    1.74 +
    1.75 +user_pref("geo.wifi.uri", "http://%(server)s/tests/dom/tests/mochitest/geolocation/network_geolocation.sjs");
    1.76 +user_pref("geo.wifi.timeToWaitBeforeSending", 200);
    1.77 +user_pref("geo.wifi.scan", false);
    1.78 +user_pref("geo.wifi.logging.enabled", true);
    1.79 +
    1.80 +user_pref("camino.warn_when_closing", false); // Camino-only, harmless to others
    1.81 +
    1.82 +// Make url-classifier updates so rare that they won't affect tests
    1.83 +user_pref("urlclassifier.updateinterval", 172800);
    1.84 +// Point the url-classifier to the local testing server for fast failures
    1.85 +user_pref("browser.safebrowsing.gethashURL", "http://%(server)s/safebrowsing-dummy/gethash");
    1.86 +user_pref("browser.safebrowsing.updateURL", "http://%(server)s/safebrowsing-dummy/update");
    1.87 +// Point update checks to the local testing server for fast failures
    1.88 +user_pref("extensions.update.url", "http://%(server)s/extensions-dummy/updateURL");
    1.89 +user_pref("extensions.update.background.url", "http://%(server)s/extensions-dummy/updateBackgroundURL");
    1.90 +user_pref("extensions.blocklist.url", "http://%(server)s/extensions-dummy/blocklistURL");
    1.91 +user_pref("extensions.hotfix.url", "http://%(server)s/extensions-dummy/hotfixURL");
    1.92 +// Turn off extension updates so they don't bother tests
    1.93 +user_pref("extensions.update.enabled", false);
    1.94 +// Make sure opening about:addons won't hit the network
    1.95 +user_pref("extensions.webservice.discoverURL", "http://%(server)s/extensions-dummy/discoveryURL");
    1.96 +// Make sure AddonRepository won't hit the network
    1.97 +user_pref("extensions.getAddons.maxResults", 0);
    1.98 +user_pref("extensions.getAddons.get.url", "http://%(server)s/extensions-dummy/repositoryGetURL");
    1.99 +user_pref("extensions.getAddons.getWithPerformance.url", "http://%(server)s/extensions-dummy/repositoryGetWithPerformanceURL");
   1.100 +user_pref("extensions.getAddons.search.browseURL", "http://%(server)s/extensions-dummy/repositoryBrowseURL");
   1.101 +user_pref("extensions.getAddons.search.url", "http://%(server)s/extensions-dummy/repositorySearchURL");
   1.102 +// Make sure that opening the plugins check page won't hit the network
   1.103 +user_pref("plugins.update.url", "http://%(server)s/plugins-dummy/updateCheckURL");
   1.104 +
   1.105 +// Existing tests don't wait for the notification button security delay
   1.106 +user_pref("security.notification_enable_delay", 0);
   1.107 +
   1.108 +// Make enablePrivilege continue to work for test code. :-(
   1.109 +user_pref("security.turn_off_all_security_so_that_viruses_can_take_over_this_computer", true);
   1.110 +
   1.111 +// In the default configuration, we bypass XBL scopes (a security feature) for
   1.112 +// domains whitelisted for remote XUL, so that intranet apps and such continue
   1.113 +// to work without major rewrites. However, we also use the whitelist mechanism
   1.114 +// to run our XBL tests in automation, in which case we really want to be testing
   1.115 +// the configuration that we ship to users without special whitelisting. So we
   1.116 +// use an additional pref here to allow automation to use the "normal" behavior.
   1.117 +user_pref("dom.use_xbl_scopes_for_remote_xul", true);
   1.118 +
   1.119 +// Get network events.
   1.120 +user_pref("network.activity.blipIntervalMilliseconds", 250);
   1.121 +
   1.122 +// Don't allow the Data Reporting service to prompt for policy acceptance.
   1.123 +user_pref("datareporting.policy.dataSubmissionPolicyBypassAcceptance", true);
   1.124 +
   1.125 +// Point Firefox Health Report at a local server. We don't care if it actually
   1.126 +// works. It just can't hit the default production endpoint.
   1.127 +user_pref("datareporting.healthreport.documentServerURI", "http://%(server)s/healthreport/");
   1.128 +user_pref("datareporting.healthreport.about.reportUrl", "http://%(server)s/abouthealthreport/");
   1.129 +
   1.130 +// Make sure CSS error reporting is enabled for tests
   1.131 +user_pref("layout.css.report_errors", true);
   1.132 +
   1.133 +// Enable CSS Grid for testing
   1.134 +user_pref("layout.css.grid.enabled", true);
   1.135 +
   1.136 +// Enable mozContacts
   1.137 +user_pref("dom.mozContacts.enabled", true);
   1.138 +user_pref("dom.navigator-property.disable.mozContacts", false);
   1.139 +user_pref("dom.global-constructor.disable.mozContact", false);
   1.140 +
   1.141 +// Enable mozSettings
   1.142 +user_pref("dom.mozSettings.enabled", true);
   1.143 +
   1.144 +// Make sure the disk cache doesn't get auto disabled
   1.145 +user_pref("network.http.bypass-cachelock-threshold", 200000);
   1.146 +
   1.147 +// Enable Gamepad
   1.148 +user_pref("dom.gamepad.enabled", true);
   1.149 +user_pref("dom.gamepad.non_standard_events.enabled", true);
   1.150 +
   1.151 +// Enable Web Audio legacy APIs
   1.152 +user_pref("media.webaudio.legacy.BiquadFilterNode", true);
   1.153 +user_pref("media.webaudio.legacy.PannerNode", true);
   1.154 +user_pref("media.webaudio.legacy.OscillatorNode", true);
   1.155 +
   1.156 +// Always use network provider for geolocation tests
   1.157 +// so we bypass the OSX dialog raised by the corelocation provider
   1.158 +user_pref("geo.provider.testing", true);
   1.159 +
   1.160 +// Background thumbnails in particular cause grief, and disabling thumbnails
   1.161 +// in general can't hurt - we re-enable them when tests need them.
   1.162 +user_pref("browser.pagethumbnails.capturing_disabled", true);
   1.163 +
   1.164 +// Indicate that the download panel has been shown once so that whichever
   1.165 +// download test runs first doesn't show the popup inconsistently.
   1.166 +user_pref("browser.download.panel.shown", true);
   1.167 +
   1.168 +// prefs for firefox metro.
   1.169 +// Disable first-tun tab
   1.170 +user_pref("browser.firstrun.count", 0);
   1.171 +
   1.172 +// Tell the PBackground infrastructure to run a test at startup.
   1.173 +user_pref("pbackground.testing", true);
   1.174 +
   1.175 +// Enable webapps testing mode, which bypasses native installation.
   1.176 +user_pref("browser.webapps.testing", true);
   1.177 +
   1.178 +// Disable android snippets
   1.179 +user_pref("browser.snippets.enabled", false);
   1.180 +user_pref("browser.snippets.syncPromo.enabled", false);
   1.181 +
   1.182 +// Disable useragent updates.
   1.183 +user_pref("general.useragent.updates.enabled", false);
   1.184 +
   1.185 +// Disable webapp updates.  Yes, it is supposed to be an integer.
   1.186 +user_pref("browser.webapps.checkForUpdates", 0);
   1.187 +
   1.188 +// Do not turn HTTP cache v2 for our infra tests (some tests are failing)
   1.189 +user_pref("browser.cache.use_new_backend_temp", false);
   1.190 +
   1.191 +// Don't connect to Yahoo! for RSS feed tests.
   1.192 +// en-US only uses .types.0.uri, but set all of them just to be sure.
   1.193 +user_pref('browser.contentHandlers.types.0.uri', 'http://test1.example.org/rss?url=%%s')
   1.194 +user_pref('browser.contentHandlers.types.1.uri', 'http://test1.example.org/rss?url=%%s')
   1.195 +user_pref('browser.contentHandlers.types.2.uri', 'http://test1.example.org/rss?url=%%s')
   1.196 +user_pref('browser.contentHandlers.types.3.uri', 'http://test1.example.org/rss?url=%%s')
   1.197 +user_pref('browser.contentHandlers.types.4.uri', 'http://test1.example.org/rss?url=%%s')
   1.198 +user_pref('browser.contentHandlers.types.5.uri', 'http://test1.example.org/rss?url=%%s')
   1.199 +
   1.200 +// We want to collect telemetry, but we don't want to send in the results.
   1.201 +user_pref('toolkit.telemetry.server', 'https://%(server)s/telemetry-dummy/');
   1.202 +
   1.203 +// We don't want to hit the real Firefox Accounts server for tests.  We don't
   1.204 +// actually need a functioning FxA server, so just set it to something that
   1.205 +// resolves and accepts requests, even if they all fail.
   1.206 +user_pref('identity.fxaccounts.auth.uri', 'https://%(server)s/fxa-dummy/');
   1.207 +
   1.208 +// Make sure we don't try to load snippets from the network.
   1.209 +user_pref("browser.aboutHomeSnippets.updateUrl", "nonexistent://test");
   1.210 +
   1.211 +// Ensure UITour won't hit the network
   1.212 +user_pref("browser.uitour.pinnedTabUrl", "http://%(server)s/uitour-dummy/pinnedTab");
   1.213 +user_pref("browser.uitour.url", "http://%(server)s/uitour-dummy/tour");

mercurial