|
1 // Base preferences file used by most test harnesses |
|
2 |
|
3 user_pref("browser.console.showInPanel", true); |
|
4 user_pref("browser.dom.window.dump.enabled", true); |
|
5 user_pref("browser.firstrun.show.localepicker", false); |
|
6 user_pref("browser.firstrun.show.uidiscovery", false); |
|
7 user_pref("browser.startup.page", 0); // use about:blank, not browser.startup.homepage |
|
8 user_pref("browser.ui.layout.tablet", 0); // force tablet UI off |
|
9 user_pref("dom.allow_scripts_to_close_windows", true); |
|
10 user_pref("dom.disable_open_during_load", false); |
|
11 user_pref("dom.experimental_forms", true); // on for testing |
|
12 user_pref("dom.forms.number", true); // on for testing |
|
13 user_pref("dom.forms.color", true); // on for testing |
|
14 user_pref("dom.max_script_run_time", 0); // no slow script dialogs |
|
15 user_pref("hangmonitor.timeout", 0); // no hang monitor |
|
16 user_pref("dom.max_chrome_script_run_time", 0); |
|
17 user_pref("dom.popup_maximum", -1); |
|
18 user_pref("dom.send_after_paint_to_content", true); |
|
19 user_pref("dom.successive_dialog_time_limit", 0); |
|
20 user_pref("signed.applets.codebase_principal_support", true); |
|
21 user_pref("browser.shell.checkDefaultBrowser", false); |
|
22 user_pref("shell.checkDefaultClient", false); |
|
23 user_pref("browser.warnOnQuit", false); |
|
24 user_pref("accessibility.typeaheadfind.autostart", false); |
|
25 user_pref("javascript.options.showInConsole", true); |
|
26 user_pref("devtools.errorconsole.enabled", true); |
|
27 user_pref("devtools.debugger.remote-port", 6023); |
|
28 user_pref("layout.debug.enable_data_xbl", true); |
|
29 user_pref("browser.EULA.override", true); |
|
30 user_pref("gfx.color_management.force_srgb", true); |
|
31 user_pref("network.manage-offline-status", false); |
|
32 // Disable speculative connections so they aren't reported as leaking when they're hanging around. |
|
33 user_pref("network.http.speculative-parallel-limit", 0); |
|
34 user_pref("dom.min_background_timeout_value", 1000); |
|
35 user_pref("test.mousescroll", true); |
|
36 user_pref("security.default_personal_cert", "Select Automatically"); // Need to client auth test be w/o any dialogs |
|
37 user_pref("network.http.prompt-temp-redirect", false); |
|
38 user_pref("media.cache_size", 100); |
|
39 user_pref("media.volume_scale", "0.01"); |
|
40 user_pref("security.warn_viewing_mixed", false); |
|
41 user_pref("app.update.enabled", false); |
|
42 user_pref("app.update.staging.enabled", false); |
|
43 user_pref("browser.panorama.experienced_first_run", true); // Assume experienced |
|
44 user_pref("dom.w3c_touch_events.enabled", 1); |
|
45 user_pref("dom.undo_manager.enabled", true); |
|
46 user_pref("dom.webcomponents.enabled", true); |
|
47 // Set a future policy version to avoid the telemetry prompt. |
|
48 user_pref("toolkit.telemetry.prompted", 999); |
|
49 user_pref("toolkit.telemetry.notifiedOptOut", 999); |
|
50 // Existing tests assume there is no font size inflation. |
|
51 user_pref("font.size.inflation.emPerLine", 0); |
|
52 user_pref("font.size.inflation.minTwips", 0); |
|
53 |
|
54 // AddonManager tests require that the experiments provider be present. |
|
55 user_pref("experiments.supported", true); |
|
56 user_pref("experiments.logging.level", "Trace"); |
|
57 user_pref("experiments.logging.dump", true); |
|
58 // Point the manifest at something local so we don't risk it hitting production |
|
59 // data and installing experiments that may vary over time. |
|
60 user_pref("experiments.manifest.uri", "http://%(server)s/experiments-dummy/manifest"); |
|
61 |
|
62 // Only load extensions from the application and user profile |
|
63 // AddonManager.SCOPE_PROFILE + AddonManager.SCOPE_APPLICATION |
|
64 user_pref("extensions.enabledScopes", 5); |
|
65 // Disable metadata caching for installed add-ons by default |
|
66 user_pref("extensions.getAddons.cache.enabled", false); |
|
67 // Disable intalling any distribution add-ons |
|
68 user_pref("extensions.installDistroAddons", false); |
|
69 // XPI extensions are required for test harnesses to load |
|
70 user_pref("extensions.defaultProviders.enabled", true); |
|
71 |
|
72 user_pref("geo.wifi.uri", "http://%(server)s/tests/dom/tests/mochitest/geolocation/network_geolocation.sjs"); |
|
73 user_pref("geo.wifi.timeToWaitBeforeSending", 200); |
|
74 user_pref("geo.wifi.scan", false); |
|
75 user_pref("geo.wifi.logging.enabled", true); |
|
76 |
|
77 user_pref("camino.warn_when_closing", false); // Camino-only, harmless to others |
|
78 |
|
79 // Make url-classifier updates so rare that they won't affect tests |
|
80 user_pref("urlclassifier.updateinterval", 172800); |
|
81 // Point the url-classifier to the local testing server for fast failures |
|
82 user_pref("browser.safebrowsing.gethashURL", "http://%(server)s/safebrowsing-dummy/gethash"); |
|
83 user_pref("browser.safebrowsing.updateURL", "http://%(server)s/safebrowsing-dummy/update"); |
|
84 // Point update checks to the local testing server for fast failures |
|
85 user_pref("extensions.update.url", "http://%(server)s/extensions-dummy/updateURL"); |
|
86 user_pref("extensions.update.background.url", "http://%(server)s/extensions-dummy/updateBackgroundURL"); |
|
87 user_pref("extensions.blocklist.url", "http://%(server)s/extensions-dummy/blocklistURL"); |
|
88 user_pref("extensions.hotfix.url", "http://%(server)s/extensions-dummy/hotfixURL"); |
|
89 // Turn off extension updates so they don't bother tests |
|
90 user_pref("extensions.update.enabled", false); |
|
91 // Make sure opening about:addons won't hit the network |
|
92 user_pref("extensions.webservice.discoverURL", "http://%(server)s/extensions-dummy/discoveryURL"); |
|
93 // Make sure AddonRepository won't hit the network |
|
94 user_pref("extensions.getAddons.maxResults", 0); |
|
95 user_pref("extensions.getAddons.get.url", "http://%(server)s/extensions-dummy/repositoryGetURL"); |
|
96 user_pref("extensions.getAddons.getWithPerformance.url", "http://%(server)s/extensions-dummy/repositoryGetWithPerformanceURL"); |
|
97 user_pref("extensions.getAddons.search.browseURL", "http://%(server)s/extensions-dummy/repositoryBrowseURL"); |
|
98 user_pref("extensions.getAddons.search.url", "http://%(server)s/extensions-dummy/repositorySearchURL"); |
|
99 // Make sure that opening the plugins check page won't hit the network |
|
100 user_pref("plugins.update.url", "http://%(server)s/plugins-dummy/updateCheckURL"); |
|
101 |
|
102 // Existing tests don't wait for the notification button security delay |
|
103 user_pref("security.notification_enable_delay", 0); |
|
104 |
|
105 // Make enablePrivilege continue to work for test code. :-( |
|
106 user_pref("security.turn_off_all_security_so_that_viruses_can_take_over_this_computer", true); |
|
107 |
|
108 // In the default configuration, we bypass XBL scopes (a security feature) for |
|
109 // domains whitelisted for remote XUL, so that intranet apps and such continue |
|
110 // to work without major rewrites. However, we also use the whitelist mechanism |
|
111 // to run our XBL tests in automation, in which case we really want to be testing |
|
112 // the configuration that we ship to users without special whitelisting. So we |
|
113 // use an additional pref here to allow automation to use the "normal" behavior. |
|
114 user_pref("dom.use_xbl_scopes_for_remote_xul", true); |
|
115 |
|
116 // Get network events. |
|
117 user_pref("network.activity.blipIntervalMilliseconds", 250); |
|
118 |
|
119 // Don't allow the Data Reporting service to prompt for policy acceptance. |
|
120 user_pref("datareporting.policy.dataSubmissionPolicyBypassAcceptance", true); |
|
121 |
|
122 // Point Firefox Health Report at a local server. We don't care if it actually |
|
123 // works. It just can't hit the default production endpoint. |
|
124 user_pref("datareporting.healthreport.documentServerURI", "http://%(server)s/healthreport/"); |
|
125 user_pref("datareporting.healthreport.about.reportUrl", "http://%(server)s/abouthealthreport/"); |
|
126 |
|
127 // Make sure CSS error reporting is enabled for tests |
|
128 user_pref("layout.css.report_errors", true); |
|
129 |
|
130 // Enable CSS Grid for testing |
|
131 user_pref("layout.css.grid.enabled", true); |
|
132 |
|
133 // Enable mozContacts |
|
134 user_pref("dom.mozContacts.enabled", true); |
|
135 user_pref("dom.navigator-property.disable.mozContacts", false); |
|
136 user_pref("dom.global-constructor.disable.mozContact", false); |
|
137 |
|
138 // Enable mozSettings |
|
139 user_pref("dom.mozSettings.enabled", true); |
|
140 |
|
141 // Make sure the disk cache doesn't get auto disabled |
|
142 user_pref("network.http.bypass-cachelock-threshold", 200000); |
|
143 |
|
144 // Enable Gamepad |
|
145 user_pref("dom.gamepad.enabled", true); |
|
146 user_pref("dom.gamepad.non_standard_events.enabled", true); |
|
147 |
|
148 // Enable Web Audio legacy APIs |
|
149 user_pref("media.webaudio.legacy.BiquadFilterNode", true); |
|
150 user_pref("media.webaudio.legacy.PannerNode", true); |
|
151 user_pref("media.webaudio.legacy.OscillatorNode", true); |
|
152 |
|
153 // Always use network provider for geolocation tests |
|
154 // so we bypass the OSX dialog raised by the corelocation provider |
|
155 user_pref("geo.provider.testing", true); |
|
156 |
|
157 // Background thumbnails in particular cause grief, and disabling thumbnails |
|
158 // in general can't hurt - we re-enable them when tests need them. |
|
159 user_pref("browser.pagethumbnails.capturing_disabled", true); |
|
160 |
|
161 // Indicate that the download panel has been shown once so that whichever |
|
162 // download test runs first doesn't show the popup inconsistently. |
|
163 user_pref("browser.download.panel.shown", true); |
|
164 |
|
165 // prefs for firefox metro. |
|
166 // Disable first-tun tab |
|
167 user_pref("browser.firstrun.count", 0); |
|
168 |
|
169 // Tell the PBackground infrastructure to run a test at startup. |
|
170 user_pref("pbackground.testing", true); |
|
171 |
|
172 // Enable webapps testing mode, which bypasses native installation. |
|
173 user_pref("browser.webapps.testing", true); |
|
174 |
|
175 // Disable android snippets |
|
176 user_pref("browser.snippets.enabled", false); |
|
177 user_pref("browser.snippets.syncPromo.enabled", false); |
|
178 |
|
179 // Disable useragent updates. |
|
180 user_pref("general.useragent.updates.enabled", false); |
|
181 |
|
182 // Disable webapp updates. Yes, it is supposed to be an integer. |
|
183 user_pref("browser.webapps.checkForUpdates", 0); |
|
184 |
|
185 // Do not turn HTTP cache v2 for our infra tests (some tests are failing) |
|
186 user_pref("browser.cache.use_new_backend_temp", false); |
|
187 |
|
188 // Don't connect to Yahoo! for RSS feed tests. |
|
189 // en-US only uses .types.0.uri, but set all of them just to be sure. |
|
190 user_pref('browser.contentHandlers.types.0.uri', 'http://test1.example.org/rss?url=%%s') |
|
191 user_pref('browser.contentHandlers.types.1.uri', 'http://test1.example.org/rss?url=%%s') |
|
192 user_pref('browser.contentHandlers.types.2.uri', 'http://test1.example.org/rss?url=%%s') |
|
193 user_pref('browser.contentHandlers.types.3.uri', 'http://test1.example.org/rss?url=%%s') |
|
194 user_pref('browser.contentHandlers.types.4.uri', 'http://test1.example.org/rss?url=%%s') |
|
195 user_pref('browser.contentHandlers.types.5.uri', 'http://test1.example.org/rss?url=%%s') |
|
196 |
|
197 // We want to collect telemetry, but we don't want to send in the results. |
|
198 user_pref('toolkit.telemetry.server', 'https://%(server)s/telemetry-dummy/'); |
|
199 |
|
200 // We don't want to hit the real Firefox Accounts server for tests. We don't |
|
201 // actually need a functioning FxA server, so just set it to something that |
|
202 // resolves and accepts requests, even if they all fail. |
|
203 user_pref('identity.fxaccounts.auth.uri', 'https://%(server)s/fxa-dummy/'); |
|
204 |
|
205 // Make sure we don't try to load snippets from the network. |
|
206 user_pref("browser.aboutHomeSnippets.updateUrl", "nonexistent://test"); |
|
207 |
|
208 // Ensure UITour won't hit the network |
|
209 user_pref("browser.uitour.pinnedTabUrl", "http://%(server)s/uitour-dummy/pinnedTab"); |
|
210 user_pref("browser.uitour.url", "http://%(server)s/uitour-dummy/tour"); |