mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1460912 - [testing/profiles] Use the 'common' profile in reftest r=gbrown
This removes prefs that are already shared between reftest and the 'common' profile from: testing/profiles/reftest/user.js And moves prefs that were set in the 'common' profile but not reftest to both: testing/profiles/unittest/user.js testing/profiles/perf/user.js MozReview-Commit-ID: HLfVrd2eD0l --HG-- extra : rebase_source : ff186d28fa9bb081133bec06ee6689d59e66d41e
This commit is contained in:
parent
d0e6a4b792
commit
e8b71d39d5
@ -1,15 +1,10 @@
|
||||
// Base preferences file used by both unittest and perf harnesses.
|
||||
/* globals user_pref */
|
||||
user_pref("app.update.enabled", false);
|
||||
user_pref("browser.EULA.override", true);
|
||||
// Disable Bookmark backups by default.
|
||||
user_pref("browser.bookmarks.max_backups", 0);
|
||||
user_pref("browser.dom.window.dump.enabled", true);
|
||||
// Use an empty list of sites to avoid fetching
|
||||
user_pref("browser.newtabpage.activity-stream.default.sites", "");
|
||||
user_pref("browser.newtabpage.activity-stream.feeds.section.topstories", false);
|
||||
user_pref("browser.newtabpage.activity-stream.feeds.snippets", false);
|
||||
user_pref("browser.newtabpage.activity-stream.telemetry", false);
|
||||
user_pref("browser.newtabpage.activity-stream.tippyTop.service.endpoint", "");
|
||||
user_pref("browser.search.countryCode", "US");
|
||||
// This will prevent HTTP requests for region defaults.
|
||||
@ -17,24 +12,15 @@ user_pref("browser.search.geoSpecificDefaults", false);
|
||||
// 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.shell.checkDefaultBrowser", false);
|
||||
// Disable android snippets
|
||||
user_pref("browser.snippets.enabled", false);
|
||||
user_pref("browser.snippets.syncPromo.enabled", false);
|
||||
// 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);
|
||||
user_pref("browser.warnOnQuit", false);
|
||||
// Disable webapp updates. Yes, it is supposed to be an integer.
|
||||
user_pref("browser.webapps.checkForUpdates", 0);
|
||||
// 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);
|
||||
user_pref("devtools.chrome.enabled", false);
|
||||
user_pref("devtools.debugger.remote-enabled", false);
|
||||
user_pref("dom.allow_scripts_to_close_windows", true);
|
||||
user_pref("dom.disable_open_during_load", false);
|
||||
user_pref("dom.max_chrome_script_run_time", 0);
|
||||
user_pref("dom.max_script_run_time", 0); // no slow script dialogs
|
||||
user_pref("dom.send_after_paint_to_content", true);
|
||||
@ -47,20 +33,7 @@ user_pref("extensions.update.enabled", false);
|
||||
// Disable useragent updates.
|
||||
user_pref("general.useragent.updates.enabled", false);
|
||||
user_pref("hangmonitor.timeout", 0); // no hang monitor
|
||||
// Make tests run consistently on DevEdition (which has a lightweight theme
|
||||
// selected by default).
|
||||
user_pref("lightweightThemes.selectedThemeID", "");
|
||||
user_pref("media.gmp-manager.updateEnabled", false);
|
||||
// Don't block old libavcodec libraries when testing, because our test systems
|
||||
// cannot easily be upgraded.
|
||||
user_pref("media.libavcodec.allow-obsolete", true);
|
||||
// Disable speculative connections so they aren't reported as leaking when they're hanging around.
|
||||
user_pref("network.http.speculative-parallel-limit", 0);
|
||||
// Set places maintenance far in the future (the maximum time possible in an
|
||||
// int32_t) to avoid it kicking in during tests. The maintenance can take a
|
||||
// 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);
|
||||
// Make enablePrivilege continue to work for test code. :-(
|
||||
user_pref("security.turn_off_all_security_so_that_viruses_can_take_over_this_computer", true);
|
||||
user_pref("xpinstall.signatures.required", false);
|
||||
|
@ -1,8 +1,11 @@
|
||||
// Base preferences file used by performance harnesses
|
||||
/* globals user_pref */
|
||||
user_pref("app.normandy.api_url", "https://127.0.0.1/selfsupport-dummy/");
|
||||
user_pref("browser.EULA.override", true);
|
||||
user_pref("browser.aboutHomeSnippets.updateUrl", "https://127.0.0.1/about-dummy/");
|
||||
user_pref("browser.addon-watch.interval", -1); // Deactivate add-on watching
|
||||
// Disable Bookmark backups by default.
|
||||
user_pref("browser.bookmarks.max_backups", 0);
|
||||
user_pref("browser.cache.disk.smart_size.enabled", false);
|
||||
user_pref("browser.cache.disk.smart_size.first_run", false);
|
||||
user_pref("browser.chrome.dynamictoolbar", false);
|
||||
@ -13,6 +16,8 @@ user_pref("browser.contentHandlers.types.3.uri", "http://127.0.0.1/rss?url=%s");
|
||||
user_pref("browser.contentHandlers.types.4.uri", "http://127.0.0.1/rss?url=%s");
|
||||
user_pref("browser.contentHandlers.types.5.uri", "http://127.0.0.1/rss?url=%s");
|
||||
user_pref("browser.link.open_newwindow", 2);
|
||||
user_pref("browser.newtabpage.activity-stream.default.sites", "");
|
||||
user_pref("browser.newtabpage.activity-stream.telemetry", false);
|
||||
user_pref("browser.ping-centre.production.endpoint", "https://127.0.0.1/pingcentre/dummy/");
|
||||
user_pref("browser.ping-centre.staging.endpoint", "https://127.0.0.1/pingcentre/dummy/");
|
||||
user_pref("browser.reader.detectedFirstArticle", true);
|
||||
@ -29,10 +34,19 @@ user_pref("browser.safebrowsing.provider.google4.updateURL", "http://127.0.0.1/s
|
||||
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.search.geoip.url", "");
|
||||
user_pref("browser.shell.checkDefaultBrowser", false);
|
||||
user_pref("browser.tabs.remote.autostart", true);
|
||||
// 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);
|
||||
user_pref("browser.warnOnQuit", false);
|
||||
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");
|
||||
user_pref("devtools.timeline.enabled", false);
|
||||
user_pref("dom.allow_scripts_to_close_windows", true);
|
||||
user_pref("dom.disable_open_during_load", false);
|
||||
user_pref("dom.disable_window_flip", true);
|
||||
user_pref("dom.disable_window_move_resize", true);
|
||||
user_pref("extensions.autoDisableScopes", 10);
|
||||
@ -50,14 +64,27 @@ user_pref("extensions.update.url", "http://127.0.0.1/extensions-dummy/updateURL"
|
||||
user_pref("extensions.webservice.discoverURL", "http://127.0.0.1/extensions-dummy/discoveryURL");
|
||||
user_pref("identity.fxaccounts.auth.uri", "https://127.0.0.1/fxa-dummy/");
|
||||
user_pref("identity.fxaccounts.migrateToDevEdition", false);
|
||||
// Make tests run consistently on DevEdition (which has a lightweight theme
|
||||
// selected by default).
|
||||
user_pref("lightweightThemes.selectedThemeID", "");
|
||||
user_pref("media.capturestream_hints.enabled", true);
|
||||
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);
|
||||
user_pref("media.navigator.enabled", true);
|
||||
user_pref("media.navigator.permission.disabled", true);
|
||||
user_pref("media.peerconnection.enabled", true);
|
||||
// Disable speculative connections so they aren't reported as leaking when they're hanging around.
|
||||
user_pref("network.http.speculative-parallel-limit", 0);
|
||||
user_pref("network.proxy.http", "localhost");
|
||||
user_pref("network.proxy.http_port", 80);
|
||||
user_pref("network.proxy.type", 1);
|
||||
// Set places maintenance far in the future (the maximum time possible in an
|
||||
// int32_t) to avoid it kicking in during tests. The maintenance can take a
|
||||
// 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("plugin.state.flash", 0);
|
||||
user_pref("plugins.flashBlock.enabled", false);
|
||||
user_pref("privacy.reduceTimerPrecision", false); // Bug 1445243 - reduces precision of tests
|
||||
|
@ -2,7 +2,7 @@
|
||||
"mochitest": ["common", "unittest"],
|
||||
"profileserver": ["common", "unittest"],
|
||||
"raptor": ["common", "perf", "raptor"],
|
||||
"reftest": ["reftest"],
|
||||
"reftest": ["common", "reftest"],
|
||||
"talos": ["common", "perf"],
|
||||
"valgrind": ["common", "unittest"],
|
||||
"web-platform-tests": ["common", "unittest"]
|
||||
|
@ -2,15 +2,8 @@
|
||||
/* globals user_pref */
|
||||
// Make sure Shield doesn't hit the network.
|
||||
user_pref("app.normandy.api_url", "https://localhost/selfsupport-dummy/");
|
||||
// Disable updates
|
||||
user_pref("app.update.enabled", false);
|
||||
user_pref("app.update.staging.enabled", false);
|
||||
user_pref("app.update.url.android", "");
|
||||
user_pref("browser.dom.window.dump.enabled", true);
|
||||
// Make sure we don't reach out to the network for activity stream services
|
||||
user_pref("browser.newtabpage.activity-stream.feeds.section.topstories", false);
|
||||
user_pref("browser.newtabpage.activity-stream.feeds.snippets", false);
|
||||
user_pref("browser.newtabpage.activity-stream.tippyTop.service.endpoint", "");
|
||||
// Disable the thumbnailing service
|
||||
user_pref("browser.pagethumbnails.capturing_disabled", true);
|
||||
user_pref("browser.ping-centre.production.endpoint", "https://localhost");
|
||||
@ -29,15 +22,7 @@ user_pref("browser.safebrowsing.provider.google4.gethashURL", "http://127.0.0.1/
|
||||
user_pref("browser.safebrowsing.provider.google4.updateURL", "http://127.0.0.1/safebrowsing-dummyg4/update");
|
||||
user_pref("browser.safebrowsing.provider.mozilla.gethashURL", "http://127.0.0.1/safebrowsing-dummym/gethash");
|
||||
user_pref("browser.safebrowsing.provider.mozilla.updateURL", "http://127.0.0.1/safebrowsing-dummym/update");
|
||||
user_pref("browser.search.countryCode", "US");
|
||||
user_pref("browser.search.geoSpecificDefaults", false);
|
||||
// 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);
|
||||
// And for snippets.
|
||||
user_pref("browser.snippets.enabled", false);
|
||||
user_pref("browser.snippets.firstrunHomepage.enabled", false);
|
||||
user_pref("browser.snippets.syncPromo.enabled", false);
|
||||
// use about:blank, not browser.startup.homepage
|
||||
user_pref("browser.startup.page", 0);
|
||||
// Since our tests are 800px wide, set the assume-designed-for width of all
|
||||
@ -45,19 +30,11 @@ user_pref("browser.startup.page", 0);
|
||||
// in our 800px window we don't zoom out by default to try to fit the
|
||||
// assumed 980px content.
|
||||
user_pref("browser.viewport.desktopWidth", 800);
|
||||
// And for webapp updates. Yes, it is supposed to be an integer.
|
||||
user_pref("browser.webapps.checkForUpdates", 0);
|
||||
user_pref("datareporting.healthreport.uploadEnabled", false);
|
||||
// Skip data reporting policy notifications.
|
||||
user_pref("datareporting.policy.dataSubmissionPolicyBypassNotification", true);
|
||||
// Allow XUL and XBL files to be opened from file:// URIs
|
||||
user_pref("dom.allow_XUL_XBL_for_file", true);
|
||||
// Don't forcibly kill content processes after a timeout
|
||||
user_pref("dom.ipc.tabs.shutdownTimeoutSecs", 0);
|
||||
user_pref("dom.max_chrome_script_run_time", 0);
|
||||
// no slow script dialogs
|
||||
user_pref("dom.max_script_run_time", 0);
|
||||
user_pref("dom.send_after_paint_to_content", true);
|
||||
// For mochitests, we're more interested in testing the behavior of in-
|
||||
// content XBL bindings, so we set this pref to true. In reftests, we're
|
||||
// more interested in testing the behavior of XBL as it works in chrome,
|
||||
@ -66,21 +43,11 @@ user_pref("dom.use_xbl_scopes_for_remote_xul", false);
|
||||
user_pref("extensions.autoDisableScopes", 0);
|
||||
// Disable blocklist updates so we don't have them reported as leaks
|
||||
user_pref("extensions.blocklist.enabled", false);
|
||||
// Only allow add-ons from the profile and app and allow foreign
|
||||
// injection
|
||||
user_pref("extensions.enabledScopes", 5);
|
||||
user_pref("extensions.getAddons.cache.enabled", false);
|
||||
// Ensure we can load the reftest extension
|
||||
user_pref("extensions.legacy.enabled", true);
|
||||
user_pref("extensions.systemAddon.update.url", "http://localhost/dummy-system-addons.xml");
|
||||
// Disable addon updates and prefetching so we don't leak them
|
||||
user_pref("extensions.update.enabled", false);
|
||||
// And for useragent updates.
|
||||
user_pref("general.useragent.updates.enabled", false);
|
||||
user_pref("gfx.color_management.force_srgb", true);
|
||||
user_pref("gfx.color_management.mode", 2);
|
||||
user_pref("gfx.logging.level", 1);
|
||||
user_pref("hangmonitor.timeout", 0);
|
||||
// Disable downscale-during-decode, since it makes reftests more difficult.
|
||||
user_pref("image.downscale-during-decode.enabled", false);
|
||||
// Disable interruptible reflow since (1) it's normally not going to
|
||||
@ -101,7 +68,6 @@ user_pref("layout.testing.overlay-scrollbars.always-visible", true);
|
||||
user_pref("marionette.prefs.recommended", false);
|
||||
// Ensure autoplay is enabled for all platforms.
|
||||
user_pref("media.autoplay.enabled", true);
|
||||
user_pref("media.gmp-manager.updateEnabled", false);
|
||||
user_pref("media.gmp-manager.url.override", "http://localhost/dummy-gmp-manager.xml");
|
||||
user_pref("media.openUnsupportedTypeWithExternalApp", false);
|
||||
// Reftests load a lot of URLs very quickly. This puts avoidable and
|
||||
@ -122,7 +88,6 @@ user_pref("privacy.trackingprotection.pbmode.enabled", false);
|
||||
// rely on this to load downloadable fonts (which are restricted to same
|
||||
// origin policy by default) from outside their directory.
|
||||
user_pref("security.fileuri.strict_origin_policy", false);
|
||||
user_pref("security.turn_off_all_security_so_that_viruses_can_take_over_this_computer", true);
|
||||
// Allow view-source URIs to be opened from URIs that share
|
||||
// their protocol with the inner URI of the view-source URI
|
||||
user_pref("security.view-source.reachable-from-inner-protocol", true);
|
||||
@ -137,5 +102,3 @@ user_pref("toolkit.telemetry.enabled", false);
|
||||
user_pref("toolkit.telemetry.server", "https://%(server)s/telemetry-dummy/");
|
||||
user_pref("ui.caretBlinkTime", -1);
|
||||
user_pref("ui.caretWidth", 1);
|
||||
// Allow unsigned add-ons
|
||||
user_pref("xpinstall.signatures.required", false);
|
||||
|
@ -14,8 +14,11 @@ user_pref("app.update.url.android", "");
|
||||
// and causing false-positive test failures. See bug 1176798, bug 1177018,
|
||||
// bug 1210465.
|
||||
user_pref("apz.content_response_timeout", 60000);
|
||||
user_pref("browser.EULA.override", true);
|
||||
// Make sure we don't try to load snippets from the network.
|
||||
user_pref("browser.aboutHomeSnippets.updateUrl", "nonexistent://test");
|
||||
// Disable Bookmark backups by default.
|
||||
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.
|
||||
@ -30,6 +33,8 @@ user_pref("browser.contentHandlers.types.5.uri", "http://test1.example.org/rss?u
|
||||
user_pref("browser.download.panel.shown", true);
|
||||
user_pref("browser.firstrun.show.localepicker", false);
|
||||
user_pref("browser.firstrun.show.uidiscovery", false);
|
||||
user_pref("browser.newtabpage.activity-stream.default.sites", "");
|
||||
user_pref("browser.newtabpage.activity-stream.telemetry", false);
|
||||
// Background thumbnails in particular cause grief, and disabling thumbnails
|
||||
// in general can't hurt - we re-enable them when tests need them.
|
||||
user_pref("browser.pagethumbnails.capturing_disabled", true);
|
||||
@ -47,6 +52,7 @@ user_pref("browser.safebrowsing.provider.mozilla.updateURL", "http://{server}/sa
|
||||
user_pref("browser.search.suggest.timeout", 10000); // use a 10s suggestion timeout in tests
|
||||
// Bug 1458697 - Temporarily enable session store debug logging on Android to track down a test failure
|
||||
user_pref("browser.sessionstore.debug_logging", true);
|
||||
user_pref("browser.shell.checkDefaultBrowser", false);
|
||||
user_pref("browser.snippets.firstrunHomepage.enabled", false);
|
||||
user_pref("browser.startup.page", 0); // use about:blank, not browser.startup.homepage
|
||||
// Don't show a delay when hiding the audio indicator during tests
|
||||
@ -70,6 +76,10 @@ user_pref("browser.urlbar.speculativeConnect.enabled", false);
|
||||
// connections.
|
||||
user_pref("browser.urlbar.suggest.searches", false);
|
||||
user_pref("browser.urlbar.usepreloadedtopurls.enabled", false);
|
||||
// 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);
|
||||
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");
|
||||
@ -78,10 +88,14 @@ user_pref("captivedetect.canonicalURL", "http://{server}/captive-detect/success.
|
||||
user_pref("datareporting.healthreport.documentServerURI", "http://{server}/healthreport/");
|
||||
user_pref("datareporting.healthreport.uploadEnabled", false);
|
||||
user_pref("devtools.browsertoolbox.panel", "jsdebugger");
|
||||
user_pref("devtools.chrome.enabled", false);
|
||||
user_pref("devtools.debugger.prompt-connection", true);
|
||||
user_pref("devtools.debugger.remote-enabled", false);
|
||||
user_pref("devtools.debugger.remote-port", 6023);
|
||||
user_pref("devtools.devedition.promo.enabled", false);
|
||||
user_pref("devtools.testing", true);
|
||||
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
|
||||
user_pref("dom.forms.color", true); // on for testing
|
||||
user_pref("dom.forms.datetime", true); // on for testing
|
||||
@ -172,6 +186,9 @@ user_pref("layout.css.report_errors", true);
|
||||
user_pref("layout.css.shape-outside.enabled", true);
|
||||
// Disable spammy layout warnings because they pollute test logs
|
||||
user_pref("layout.spammy_warnings.enabled", false);
|
||||
// Make tests run consistently on DevEdition (which has a lightweight theme
|
||||
// selected by default).
|
||||
user_pref("lightweightThemes.selectedThemeID", "");
|
||||
// Disable all recommended Marionette preferences for Gecko tests.
|
||||
// The prefs recommended by Marionette are typically geared towards
|
||||
// consumer automation; not vendor testing.
|
||||
@ -187,6 +204,9 @@ user_pref("media.eme.enabled", true);
|
||||
// Make sure GMPInstallManager won't hit the network.
|
||||
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.
|
||||
user_pref("media.libavcodec.allow-obsolete", true);
|
||||
// Enable Media Source Extensions for testing
|
||||
user_pref("media.mediasource.mp4.enabled", true);
|
||||
user_pref("media.mediasource.webm.enabled", true);
|
||||
@ -201,6 +221,8 @@ user_pref("media.volume_scale", "0.01");
|
||||
// Enable speech synth test service, and disable built in platform services.
|
||||
user_pref("media.webspeech.synth.test", true);
|
||||
user_pref("network.http.prompt-temp-redirect", false);
|
||||
// Disable speculative connections so they aren't reported as leaking when they're hanging around.
|
||||
user_pref("network.http.speculative-parallel-limit", 0);
|
||||
user_pref("network.manage-offline-status", false);
|
||||
// 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
|
||||
@ -208,6 +230,11 @@ user_pref("network.manage-offline-status", false);
|
||||
user_pref("network.sntp.maxRetryCount", 1);
|
||||
// Make sure SNTP requests don't hit the network
|
||||
user_pref("network.sntp.pools", "{server}");
|
||||
// Set places maintenance far in the future (the maximum time possible in an
|
||||
// int32_t) to avoid it kicking in during tests. The maintenance can take a
|
||||
// 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);
|
||||
// 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);
|
||||
|
Loading…
Reference in New Issue
Block a user