2012-05-21 11:12:37 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2011-12-06 23:52:26 +00:00
|
|
|
|
|
|
|
#filter substitution
|
|
|
|
|
2014-04-30 13:44:00 +00:00
|
|
|
#ifndef MOZ_MULET
|
2014-02-11 14:24:20 +00:00
|
|
|
pref("toolkit.defaultChromeURI", "chrome://b2g/content/shell.html");
|
|
|
|
pref("browser.chromeURL", "chrome://b2g/content/");
|
2014-04-30 13:44:00 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef MOZ_MULET
|
2014-05-05 11:46:00 +00:00
|
|
|
// Set FxOS as the default homepage
|
|
|
|
// bug 1000122: this pref is fetched as a complex value,
|
|
|
|
// so that it can't be set a just a string.
|
|
|
|
// data: url is a workaround this.
|
|
|
|
pref("browser.startup.homepage", "data:text/plain,browser.startup.homepage=chrome://b2g/content/shell.html");
|
2014-04-30 13:44:00 +00:00
|
|
|
// Prevent having the firstrun page
|
|
|
|
pref("startup.homepage_welcome_url", "");
|
|
|
|
pref("browser.shell.checkDefaultBrowser", false);
|
|
|
|
// Automatically open devtools on the firefox os panel
|
|
|
|
pref("devtools.toolbox.host", "side");
|
|
|
|
pref("devtools.toolbox.sidebar.width", 800);
|
|
|
|
// Disable session store to ensure having only one tab opened
|
|
|
|
pref("browser.sessionstore.max_tabs_undo", 0);
|
|
|
|
pref("browser.sessionstore.max_windows_undo", 0);
|
|
|
|
pref("browser.sessionstore.restore_on_demand", false);
|
|
|
|
pref("browser.sessionstore.resume_from_crash", false);
|
|
|
|
#endif
|
2012-01-09 22:28:47 +00:00
|
|
|
|
2013-12-12 22:04:43 +00:00
|
|
|
// Bug 945235: Prevent all bars to be considered visible:
|
|
|
|
pref("toolkit.defaultChromeFeatures", "chrome,dialog=no,close,resizable,scrollbars,extrachrome");
|
|
|
|
|
2011-12-06 23:52:26 +00:00
|
|
|
// Device pixel to CSS px ratio, in percent. Set to -1 to calculate based on display density.
|
|
|
|
pref("browser.viewport.scaleRatio", -1);
|
|
|
|
|
2011-12-19 09:11:16 +00:00
|
|
|
/* disable text selection */
|
|
|
|
pref("browser.ignoreNativeFrameTextSelection", true);
|
|
|
|
|
2011-12-06 23:52:26 +00:00
|
|
|
/* cache prefs */
|
2012-03-23 23:39:15 +00:00
|
|
|
#ifdef MOZ_WIDGET_GONK
|
2012-02-25 18:40:03 +00:00
|
|
|
pref("browser.cache.disk.enable", true);
|
|
|
|
pref("browser.cache.disk.capacity", 55000); // kilobytes
|
|
|
|
pref("browser.cache.disk.parent_directory", "/cache");
|
2012-03-23 23:39:15 +00:00
|
|
|
#endif
|
2011-12-06 23:52:26 +00:00
|
|
|
pref("browser.cache.disk.smart_size.enabled", false);
|
|
|
|
pref("browser.cache.disk.smart_size.first_run", false);
|
|
|
|
|
|
|
|
pref("browser.cache.memory.enable", true);
|
|
|
|
pref("browser.cache.memory.capacity", 1024); // kilobytes
|
|
|
|
|
2013-09-20 09:11:25 +00:00
|
|
|
pref("browser.cache.memory_limit", 2048); // 2 MB
|
|
|
|
|
2011-12-06 23:52:26 +00:00
|
|
|
/* image cache prefs */
|
|
|
|
pref("image.cache.size", 1048576); // bytes
|
2012-09-27 18:12:56 +00:00
|
|
|
pref("image.high_quality_downscaling.enabled", false);
|
2014-08-25 19:01:46 +00:00
|
|
|
pref("canvas.image.cache.limit", 20971520); // 20 MB
|
2011-12-06 23:52:26 +00:00
|
|
|
|
|
|
|
/* offline cache prefs */
|
2011-12-14 10:17:51 +00:00
|
|
|
pref("browser.offline-apps.notify", false);
|
2012-03-23 23:39:15 +00:00
|
|
|
pref("browser.cache.offline.enable", true);
|
|
|
|
pref("offline-apps.allow_by_default", true);
|
2011-12-06 23:52:26 +00:00
|
|
|
|
|
|
|
/* protocol warning prefs */
|
|
|
|
pref("network.protocol-handler.warn-external.tel", false);
|
|
|
|
pref("network.protocol-handler.warn-external.mailto", false);
|
|
|
|
pref("network.protocol-handler.warn-external.vnd.youtube", false);
|
|
|
|
|
|
|
|
/* http prefs */
|
|
|
|
pref("network.http.pipelining", true);
|
|
|
|
pref("network.http.pipelining.ssl", true);
|
|
|
|
pref("network.http.proxy.pipelining", true);
|
|
|
|
pref("network.http.pipelining.maxrequests" , 6);
|
2014-05-12 19:10:48 +00:00
|
|
|
pref("network.http.keep-alive.timeout", 109);
|
2012-09-05 12:27:31 +00:00
|
|
|
pref("network.http.max-connections", 20);
|
|
|
|
pref("network.http.max-persistent-connections-per-server", 6);
|
|
|
|
pref("network.http.max-persistent-connections-per-proxy", 20);
|
2011-12-06 23:52:26 +00:00
|
|
|
|
2014-05-11 19:34:00 +00:00
|
|
|
// Keep the old default of accepting all cookies,
|
|
|
|
// no matter if you already visited the website or not
|
|
|
|
pref("network.cookie.cookieBehavior", 0);
|
|
|
|
|
2013-05-29 04:07:03 +00:00
|
|
|
// spdy
|
2014-10-13 04:37:27 +00:00
|
|
|
pref("network.http.spdy.enabled.http2draft", false);
|
2013-05-29 04:07:03 +00:00
|
|
|
pref("network.http.spdy.push-allowance", 32768);
|
|
|
|
|
2011-12-06 23:52:26 +00:00
|
|
|
// See bug 545869 for details on why these are set the way they are
|
|
|
|
pref("network.buffer.cache.count", 24);
|
|
|
|
pref("network.buffer.cache.size", 16384);
|
|
|
|
|
2014-01-18 01:45:48 +00:00
|
|
|
// predictive actions
|
2014-06-03 20:37:46 +00:00
|
|
|
pref("network.predictor.enable", false); // disabled on b2g
|
|
|
|
pref("network.predictor.max-db-size", 2097152); // bytes
|
|
|
|
pref("network.predictor.preserve", 50); // percentage of predictor data to keep when cleaning up
|
2014-01-18 01:45:48 +00:00
|
|
|
|
2011-12-06 23:52:26 +00:00
|
|
|
/* session history */
|
|
|
|
pref("browser.sessionhistory.max_total_viewers", 1);
|
|
|
|
pref("browser.sessionhistory.max_entries", 50);
|
|
|
|
|
|
|
|
/* session store */
|
|
|
|
pref("browser.sessionstore.resume_session_once", false);
|
|
|
|
pref("browser.sessionstore.resume_from_crash", true);
|
|
|
|
pref("browser.sessionstore.resume_from_crash_timeout", 60); // minutes
|
|
|
|
pref("browser.sessionstore.interval", 10000); // milliseconds
|
|
|
|
pref("browser.sessionstore.max_tabs_undo", 1);
|
|
|
|
|
|
|
|
/* these should help performance */
|
|
|
|
pref("mozilla.widget.force-24bpp", true);
|
|
|
|
pref("mozilla.widget.use-buffer-pixmap", true);
|
|
|
|
pref("mozilla.widget.disable-native-theme", true);
|
|
|
|
pref("layout.reflow.synthMouseMove", false);
|
2014-03-08 00:43:05 +00:00
|
|
|
pref("layers.enable-tiles", true);
|
2014-05-29 16:47:43 +00:00
|
|
|
pref("layers.low-precision-buffer", true);
|
2014-06-23 16:00:18 +00:00
|
|
|
pref("layers.low-precision-opacity", "0.5");
|
2013-12-19 20:19:25 +00:00
|
|
|
/*
|
|
|
|
Cross Process Mutex is not supported on Mac OS X so progressive
|
2014-05-29 16:47:42 +00:00
|
|
|
paint cannot be enabled for B2G on Mac OS X desktop
|
2013-12-19 20:19:25 +00:00
|
|
|
*/
|
|
|
|
#ifdef MOZ_WIDGET_COCOA
|
|
|
|
pref("layers.progressive-paint", false);
|
|
|
|
#else
|
2014-05-29 16:47:42 +00:00
|
|
|
pref("layers.progressive-paint", true);
|
2013-12-19 20:19:25 +00:00
|
|
|
#endif
|
2011-12-06 23:52:26 +00:00
|
|
|
|
|
|
|
/* download manager (don't show the window or alert) */
|
|
|
|
pref("browser.download.useDownloadDir", true);
|
|
|
|
pref("browser.download.folderList", 1); // Default to ~/Downloads
|
|
|
|
pref("browser.download.manager.showAlertOnComplete", false);
|
|
|
|
pref("browser.download.manager.showAlertInterval", 2000);
|
|
|
|
pref("browser.download.manager.retention", 2);
|
|
|
|
pref("browser.download.manager.showWhenStarting", false);
|
|
|
|
pref("browser.download.manager.closeWhenDone", true);
|
|
|
|
pref("browser.download.manager.openDelay", 0);
|
|
|
|
pref("browser.download.manager.focusWhenStarting", false);
|
|
|
|
pref("browser.download.manager.flashCount", 2);
|
|
|
|
pref("browser.download.manager.displayedHistoryDays", 7);
|
|
|
|
|
|
|
|
/* download helper */
|
|
|
|
pref("browser.helperApps.deleteTempFileOnExit", false);
|
|
|
|
|
|
|
|
/* password manager */
|
|
|
|
pref("signon.rememberSignons", true);
|
|
|
|
pref("signon.expireMasterPassword", false);
|
|
|
|
|
|
|
|
/* autocomplete */
|
|
|
|
pref("browser.formfill.enable", true);
|
|
|
|
|
|
|
|
/* spellcheck */
|
|
|
|
pref("layout.spellcheckDefault", 0);
|
|
|
|
|
|
|
|
/* block popups by default, and notify the user about blocked popups */
|
|
|
|
pref("dom.disable_open_during_load", true);
|
|
|
|
pref("privacy.popups.showBrowserMessage", true);
|
|
|
|
|
|
|
|
pref("keyword.enabled", true);
|
2014-04-24 22:42:00 +00:00
|
|
|
pref("browser.fixup.domainwhitelist.localhost", true);
|
2011-12-06 23:52:26 +00:00
|
|
|
|
|
|
|
pref("accessibility.typeaheadfind", false);
|
|
|
|
pref("accessibility.typeaheadfind.timeout", 5000);
|
|
|
|
pref("accessibility.typeaheadfind.flashBar", 1);
|
|
|
|
pref("accessibility.typeaheadfind.linksonly", false);
|
|
|
|
pref("accessibility.typeaheadfind.casesensitive", 0);
|
|
|
|
|
|
|
|
// SSL error page behaviour
|
|
|
|
pref("browser.ssl_override_behavior", 2);
|
|
|
|
pref("browser.xul.error_pages.expert_bad_cert", false);
|
|
|
|
|
|
|
|
// disable logging for the search service by default
|
|
|
|
pref("browser.search.log", false);
|
|
|
|
|
|
|
|
// disable updating
|
|
|
|
pref("browser.search.update", false);
|
|
|
|
pref("browser.search.update.log", false);
|
|
|
|
pref("browser.search.updateinterval", 6);
|
|
|
|
|
|
|
|
// enable search suggestions by default
|
|
|
|
pref("browser.search.suggest.enabled", true);
|
|
|
|
|
|
|
|
// tell the search service that we don't really expose the "current engine"
|
|
|
|
pref("browser.search.noCurrentEngine", true);
|
|
|
|
|
|
|
|
// enable xul error pages
|
|
|
|
pref("browser.xul.error_pages.enabled", true);
|
|
|
|
|
|
|
|
// disable color management
|
|
|
|
pref("gfx.color_management.mode", 0);
|
|
|
|
|
|
|
|
// don't allow JS to move and resize existing windows
|
|
|
|
pref("dom.disable_window_move_resize", true);
|
|
|
|
|
|
|
|
// prevent click image resizing for nsImageDocument
|
|
|
|
pref("browser.enable_click_image_resizing", false);
|
|
|
|
|
|
|
|
// controls which bits of private data to clear. by default we clear them all.
|
|
|
|
pref("privacy.item.cache", true);
|
|
|
|
pref("privacy.item.cookies", true);
|
|
|
|
pref("privacy.item.offlineApps", true);
|
|
|
|
pref("privacy.item.history", true);
|
|
|
|
pref("privacy.item.formdata", true);
|
|
|
|
pref("privacy.item.downloads", true);
|
|
|
|
pref("privacy.item.passwords", true);
|
|
|
|
pref("privacy.item.sessions", true);
|
|
|
|
pref("privacy.item.geolocation", true);
|
|
|
|
pref("privacy.item.siteSettings", true);
|
|
|
|
pref("privacy.item.syncAccount", true);
|
|
|
|
|
|
|
|
// base url for the wifi geolocation network provider
|
2014-03-01 01:36:21 +00:00
|
|
|
pref("geo.provider.use_mls", false);
|
2014-03-22 07:42:55 +00:00
|
|
|
pref("geo.cell.scan", true);
|
2014-04-01 21:03:24 +00:00
|
|
|
pref("geo.wifi.uri", "https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%");
|
2011-12-06 23:52:26 +00:00
|
|
|
|
|
|
|
// enable geo
|
|
|
|
pref("geo.enabled", true);
|
|
|
|
|
|
|
|
// content sink control -- controls responsiveness during page load
|
|
|
|
// see https://bugzilla.mozilla.org/show_bug.cgi?id=481566#c9
|
|
|
|
pref("content.sink.enable_perf_mode", 2); // 0 - switch, 1 - interactive, 2 - perf
|
|
|
|
pref("content.sink.pending_event_mode", 0);
|
|
|
|
pref("content.sink.perf_deflect_count", 1000000);
|
|
|
|
pref("content.sink.perf_parse_time", 50000000);
|
|
|
|
|
|
|
|
// Maximum scripts runtime before showing an alert
|
2013-07-24 22:33:32 +00:00
|
|
|
// Disable the watchdog thread for B2G. See bug 870043 comment 31.
|
|
|
|
pref("dom.use_watchdog", false);
|
2011-12-06 23:52:26 +00:00
|
|
|
|
2013-09-27 18:37:30 +00:00
|
|
|
// The slow script dialog can be triggered from inside the JS engine as well,
|
|
|
|
// ensure that those calls don't accidentally trigger the dialog.
|
|
|
|
pref("dom.max_script_run_time", 0);
|
|
|
|
pref("dom.max_chrome_script_run_time", 0);
|
|
|
|
|
2011-12-06 23:52:26 +00:00
|
|
|
// plugins
|
|
|
|
pref("plugin.disable", true);
|
|
|
|
pref("dom.ipc.plugins.enabled", true);
|
|
|
|
|
|
|
|
// product URLs
|
|
|
|
// The breakpad report server to link to in about:crashes
|
2013-03-04 07:11:21 +00:00
|
|
|
pref("breakpad.reportURL", "https://crash-stats.mozilla.com/report/index/");
|
2011-12-06 23:52:26 +00:00
|
|
|
pref("app.releaseNotesURL", "http://www.mozilla.com/%LOCALE%/b2g/%VERSION%/releasenotes/");
|
|
|
|
pref("app.support.baseURL", "http://support.mozilla.com/b2g");
|
|
|
|
pref("app.privacyURL", "http://www.mozilla.com/%LOCALE%/m/privacy.html");
|
|
|
|
pref("app.creditsURL", "http://www.mozilla.org/credits/");
|
|
|
|
pref("app.featuresURL", "http://www.mozilla.com/%LOCALE%/b2g/features/");
|
|
|
|
pref("app.faqURL", "http://www.mozilla.com/%LOCALE%/b2g/faq/");
|
|
|
|
|
|
|
|
// Name of alternate about: page for certificate errors (when undefined, defaults to about:neterror)
|
|
|
|
pref("security.alternate_certificate_error_page", "certerror");
|
|
|
|
|
|
|
|
pref("security.warn_viewing_mixed", false); // Warning is disabled. See Bug 616712.
|
|
|
|
|
2014-09-19 21:58:34 +00:00
|
|
|
// 2 = strict certificate pinning checks.
|
|
|
|
// This default preference is more strict than Firefox because B2G
|
|
|
|
// currently does not have a way to install local root certificates.
|
|
|
|
// Strict checking is effectively equivalent to non-strict checking as
|
|
|
|
// long as that is true. If an ability to add local certificates is
|
|
|
|
// added, there may be a need to change this pref.
|
|
|
|
pref("security.cert_pinning.enforcement_level", 2);
|
|
|
|
|
|
|
|
|
2011-12-06 23:52:26 +00:00
|
|
|
// Override some named colors to avoid inverse OS themes
|
|
|
|
pref("ui.-moz-dialog", "#efebe7");
|
|
|
|
pref("ui.-moz-dialogtext", "#101010");
|
|
|
|
pref("ui.-moz-field", "#fff");
|
|
|
|
pref("ui.-moz-fieldtext", "#1a1a1a");
|
|
|
|
pref("ui.-moz-buttonhoverface", "#f3f0ed");
|
|
|
|
pref("ui.-moz-buttonhovertext", "#101010");
|
|
|
|
pref("ui.-moz-combobox", "#fff");
|
|
|
|
pref("ui.-moz-comboboxtext", "#101010");
|
|
|
|
pref("ui.buttonface", "#ece7e2");
|
|
|
|
pref("ui.buttonhighlight", "#fff");
|
|
|
|
pref("ui.buttonshadow", "#aea194");
|
|
|
|
pref("ui.buttontext", "#101010");
|
|
|
|
pref("ui.captiontext", "#101010");
|
|
|
|
pref("ui.graytext", "#b1a598");
|
|
|
|
pref("ui.highlighttext", "#1a1a1a");
|
|
|
|
pref("ui.threeddarkshadow", "#000");
|
|
|
|
pref("ui.threedface", "#ece7e2");
|
|
|
|
pref("ui.threedhighlight", "#fff");
|
|
|
|
pref("ui.threedlightshadow", "#ece7e2");
|
|
|
|
pref("ui.threedshadow", "#aea194");
|
|
|
|
pref("ui.windowframe", "#efebe7");
|
|
|
|
|
2014-01-16 14:52:30 +00:00
|
|
|
// Themable via mozSettings
|
|
|
|
pref("ui.menu", "#f97c17");
|
|
|
|
pref("ui.menutext", "#ffffff");
|
|
|
|
pref("ui.infobackground", "#343e40");
|
|
|
|
pref("ui.infotext", "#686868");
|
|
|
|
pref("ui.window", "#ffffff");
|
|
|
|
pref("ui.windowtext", "#000000");
|
|
|
|
pref("ui.highlight", "#b2f2ff");
|
|
|
|
|
2011-12-06 23:52:26 +00:00
|
|
|
// replace newlines with spaces on paste into single-line text boxes
|
|
|
|
pref("editor.singleLine.pasteNewlines", 2);
|
|
|
|
|
|
|
|
// threshold where a tap becomes a drag, in 1/240" reference pixels
|
2014-04-01 04:09:23 +00:00
|
|
|
// The names of the preferences are to be in sync with EventStateManager.cpp
|
2011-12-06 23:52:26 +00:00
|
|
|
pref("ui.dragThresholdX", 25);
|
|
|
|
pref("ui.dragThresholdY", 25);
|
|
|
|
|
2014-01-16 03:54:27 +00:00
|
|
|
// Layers Acceleration. We can only have nice things on gonk, because
|
|
|
|
// they're not maintained anywhere else.
|
2013-11-25 07:07:34 +00:00
|
|
|
pref("layers.offmainthreadcomposition.enabled", true);
|
2014-05-18 07:43:00 +00:00
|
|
|
pref("layers.offmainthreadcomposition.async-animations", true);
|
2014-01-16 03:54:27 +00:00
|
|
|
#ifndef MOZ_WIDGET_GONK
|
|
|
|
pref("dom.ipc.tabs.disabled", true);
|
|
|
|
#else
|
2012-12-11 19:24:25 +00:00
|
|
|
pref("dom.ipc.tabs.disabled", false);
|
|
|
|
pref("layers.acceleration.disabled", false);
|
2012-07-20 06:48:27 +00:00
|
|
|
pref("layers.async-pan-zoom.enabled", true);
|
2013-08-14 22:49:45 +00:00
|
|
|
pref("gfx.content.azure.backends", "cairo");
|
2012-12-11 19:24:25 +00:00
|
|
|
#endif
|
2011-12-06 23:52:26 +00:00
|
|
|
|
|
|
|
// Web Notifications
|
|
|
|
pref("notification.feature.enabled", true);
|
|
|
|
|
|
|
|
// IndexedDB
|
|
|
|
pref("dom.indexedDB.warningQuota", 5);
|
|
|
|
|
|
|
|
// prevent video elements from preloading too much data
|
|
|
|
pref("media.preload.default", 1); // default to preload none
|
|
|
|
pref("media.preload.auto", 2); // preload metadata if preload=auto
|
2012-06-27 15:25:30 +00:00
|
|
|
pref("media.cache_size", 4096); // 4MB media cache
|
2014-08-07 10:23:45 +00:00
|
|
|
#ifdef MOZ_FMP4
|
|
|
|
// Enable/Disable Gonk Decoder Module
|
|
|
|
pref("media.fragmented-mp4.gonk.enabled", false);
|
|
|
|
#endif
|
2012-09-28 18:43:57 +00:00
|
|
|
// The default number of decoded video frames that are enqueued in
|
2012-11-14 19:46:40 +00:00
|
|
|
// MediaDecoderReader's mVideoQueue.
|
2012-09-28 18:43:57 +00:00
|
|
|
pref("media.video-queue.default-size", 3);
|
|
|
|
|
2012-10-17 20:18:33 +00:00
|
|
|
// optimize images' memory usage
|
2011-12-06 23:52:26 +00:00
|
|
|
pref("image.mem.decodeondraw", true);
|
2013-09-30 17:53:46 +00:00
|
|
|
pref("image.mem.allow_locking_in_content_processes", false); /* don't allow image locking */
|
2013-04-26 01:36:53 +00:00
|
|
|
pref("image.mem.min_discard_timeout_ms", 86400000); /* 24h, we rely on the out of memory hook */
|
|
|
|
pref("image.mem.max_decoded_image_kb", 30000); /* 30MB seems reasonable */
|
2013-12-16 11:31:00 +00:00
|
|
|
// 65MB seems reasonable and layout/reftests/bugs/370629-1.html requires more than 62MB
|
|
|
|
pref("image.mem.hard_limit_decoded_image_kb", 66560);
|
2013-04-26 01:36:53 +00:00
|
|
|
pref("image.onload.decode.limit", 24); /* don't decode more than 24 images eagerly */
|
2011-12-06 23:52:26 +00:00
|
|
|
|
2013-01-05 14:53:16 +00:00
|
|
|
// XXX this isn't a good check for "are touch events supported", but
|
|
|
|
// we don't really have a better one at the moment.
|
2011-12-06 23:52:26 +00:00
|
|
|
// enable touch events interfaces
|
2012-10-25 14:57:51 +00:00
|
|
|
pref("dom.w3c_touch_events.enabled", 1);
|
2011-12-06 23:52:26 +00:00
|
|
|
pref("dom.w3c_touch_events.safetyX", 0); // escape borders in units of 1/240"
|
|
|
|
pref("dom.w3c_touch_events.safetyY", 120); // escape borders in units of 1/240"
|
|
|
|
|
|
|
|
#ifdef MOZ_SAFE_BROWSING
|
|
|
|
// Safe browsing does nothing unless this pref is set
|
|
|
|
pref("browser.safebrowsing.enabled", true);
|
|
|
|
|
|
|
|
// Prevent loading of pages identified as malware
|
|
|
|
pref("browser.safebrowsing.malware.enabled", true);
|
|
|
|
|
|
|
|
// Non-enhanced mode (local url lists) URL list to check for updates
|
2014-01-16 08:27:59 +00:00
|
|
|
pref("browser.safebrowsing.provider.0.updateURL", "https://safebrowsing.google.com/safebrowsing/downloads?client={moz:client}&appver={moz:version}&pver=2.2&key=%GOOGLE_API_KEY%");
|
2011-12-06 23:52:26 +00:00
|
|
|
|
|
|
|
pref("browser.safebrowsing.dataProvider", 0);
|
|
|
|
|
|
|
|
// Does the provider name need to be localizable?
|
|
|
|
pref("browser.safebrowsing.provider.0.name", "Google");
|
2014-01-16 08:27:59 +00:00
|
|
|
pref("browser.safebrowsing.provider.0.reportURL", "https://safebrowsing.google.com/safebrowsing/report?");
|
|
|
|
pref("browser.safebrowsing.provider.0.gethashURL", "https://safebrowsing.google.com/safebrowsing/gethash?client={moz:client}&appver={moz:version}&pver=2.2");
|
2011-12-06 23:52:26 +00:00
|
|
|
|
|
|
|
// HTML report pages
|
|
|
|
pref("browser.safebrowsing.provider.0.reportGenericURL", "http://{moz:locale}.phish-generic.mozilla.com/?hl={moz:locale}");
|
|
|
|
pref("browser.safebrowsing.provider.0.reportErrorURL", "http://{moz:locale}.phish-error.mozilla.com/?hl={moz:locale}");
|
|
|
|
pref("browser.safebrowsing.provider.0.reportPhishURL", "http://{moz:locale}.phish-report.mozilla.com/?hl={moz:locale}");
|
|
|
|
pref("browser.safebrowsing.provider.0.reportMalwareURL", "http://{moz:locale}.malware-report.mozilla.com/?hl={moz:locale}");
|
|
|
|
pref("browser.safebrowsing.provider.0.reportMalwareErrorURL", "http://{moz:locale}.malware-error.mozilla.com/?hl={moz:locale}");
|
|
|
|
|
|
|
|
// FAQ URLs
|
|
|
|
|
|
|
|
// Name of the about: page contributed by safebrowsing to handle display of error
|
|
|
|
// pages on phishing/malware hits. (bug 399233)
|
|
|
|
pref("urlclassifier.alternate_error_page", "blocked");
|
|
|
|
|
|
|
|
// The number of random entries to send with a gethash request.
|
|
|
|
pref("urlclassifier.gethashnoise", 4);
|
|
|
|
|
2014-09-08 23:44:08 +00:00
|
|
|
// Gethash timeout for Safebrowsing.
|
|
|
|
pref("urlclassifier.gethash.timeout_ms", 5000);
|
|
|
|
|
2011-12-06 23:52:26 +00:00
|
|
|
// If an urlclassifier table has not been updated in this number of seconds,
|
|
|
|
// a gethash request will be forced to check that the result is still in
|
|
|
|
// the database.
|
2012-12-21 07:48:30 +00:00
|
|
|
pref("urlclassifier.max-complete-age", 2700);
|
2011-12-06 23:52:26 +00:00
|
|
|
|
|
|
|
// URL for checking the reason for a malware warning.
|
2014-01-16 08:27:59 +00:00
|
|
|
pref("browser.safebrowsing.malware.reportURL", "https://safebrowsing.google.com/safebrowsing/diagnostic?client=%NAME%&hl=%LOCALE%&site=");
|
2011-12-06 23:52:26 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// True if this is the first time we are showing about:firstrun
|
|
|
|
pref("browser.firstrun.show.uidiscovery", true);
|
|
|
|
pref("browser.firstrun.show.localepicker", true);
|
|
|
|
|
|
|
|
// initiated by a user
|
|
|
|
pref("content.ime.strict_policy", true);
|
|
|
|
|
|
|
|
// True if you always want dump() to work
|
|
|
|
//
|
|
|
|
// On Android, you also need to do the following for the output
|
|
|
|
// to show up in logcat:
|
|
|
|
//
|
|
|
|
// $ adb shell stop
|
|
|
|
// $ adb shell setprop log.redirect-stdio true
|
|
|
|
// $ adb shell start
|
|
|
|
pref("browser.dom.window.dump.enabled", false);
|
|
|
|
|
2014-09-16 20:01:53 +00:00
|
|
|
// Default Content Security Policy to apply to certified apps.
|
2013-10-17 17:56:12 +00:00
|
|
|
// If you change this CSP, make sure to update the fast path in nsCSPService.cpp
|
2014-08-29 00:20:26 +00:00
|
|
|
pref("security.apps.certified.CSP.default", "default-src *; script-src 'self'; object-src 'none'; style-src 'self' 'unsafe-inline' app://theme.gaiamobile.org");
|
2014-09-16 20:14:02 +00:00
|
|
|
// Default Content Security Policy to apply to trusted apps.
|
|
|
|
pref("security.apps.trusted.CSP.default", "default-src *; object-src 'none'; frame-src 'none'");
|
2012-09-25 23:28:17 +00:00
|
|
|
|
2011-12-06 23:52:26 +00:00
|
|
|
// Temporarily force-enable GL compositing. This is default-disabled
|
|
|
|
// deep within the bowels of the widgetry system. Remove me when GL
|
2012-01-04 03:09:29 +00:00
|
|
|
// compositing isn't default disabled in widget/android.
|
2011-12-06 23:52:26 +00:00
|
|
|
pref("layers.acceleration.force-enabled", true);
|
|
|
|
|
2012-02-02 00:46:49 +00:00
|
|
|
// handle links targeting new windows
|
|
|
|
// 1=current window/tab, 2=new window, 3=new tab in most recent window
|
|
|
|
pref("browser.link.open_newwindow", 3);
|
|
|
|
|
|
|
|
// 0: no restrictions - divert everything
|
|
|
|
// 1: don't divert window.open at all
|
|
|
|
// 2: don't divert window.open with features
|
|
|
|
pref("browser.link.open_newwindow.restriction", 0);
|
|
|
|
|
2012-05-21 14:59:14 +00:00
|
|
|
// Enable browser frames (including OOP, except on Windows, where it doesn't
|
|
|
|
// work), but make in-process browser frames the default.
|
2012-01-06 15:33:00 +00:00
|
|
|
pref("dom.mozBrowserFramesEnabled", true);
|
2012-05-21 14:59:14 +00:00
|
|
|
|
2012-11-27 20:43:52 +00:00
|
|
|
// Enable a (virtually) unlimited number of mozbrowser processes.
|
|
|
|
// We'll run out of PIDs on UNIX-y systems before we hit this limit.
|
|
|
|
pref("dom.ipc.processCount", 100000);
|
2012-05-21 14:59:14 +00:00
|
|
|
|
2012-05-16 05:28:56 +00:00
|
|
|
pref("dom.ipc.browser_frames.oop_by_default", false);
|
2014-02-05 22:43:20 +00:00
|
|
|
pref("dom.browser_frames.useAsyncPanZoom", true);
|
2012-01-06 15:33:00 +00:00
|
|
|
|
2013-07-31 07:24:07 +00:00
|
|
|
// SMS/MMS
|
2012-01-09 19:57:55 +00:00
|
|
|
pref("dom.sms.enabled", true);
|
2012-04-19 21:33:25 +00:00
|
|
|
|
2013-09-18 03:04:16 +00:00
|
|
|
//The waiting time in network manager.
|
|
|
|
pref("network.gonk.ms-release-mms-connection", 30000);
|
|
|
|
|
2013-06-13 22:00:23 +00:00
|
|
|
// WebContacts
|
2012-02-28 22:01:48 +00:00
|
|
|
pref("dom.mozContacts.enabled", true);
|
|
|
|
|
2013-06-13 22:00:23 +00:00
|
|
|
// Shortnumber matching needed for e.g. Brazil:
|
2014-04-03 23:51:58 +00:00
|
|
|
// 03187654321 can be found with 87654321
|
2013-06-13 22:00:23 +00:00
|
|
|
pref("dom.phonenumber.substringmatching.BR", 8);
|
|
|
|
pref("dom.phonenumber.substringmatching.CO", 10);
|
|
|
|
pref("dom.phonenumber.substringmatching.VE", 7);
|
2014-03-22 19:07:44 +00:00
|
|
|
pref("dom.phonenumber.substringmatching.CL", 8);
|
2014-04-06 13:52:40 +00:00
|
|
|
pref("dom.phonenumber.substringmatching.PE", 7);
|
2013-06-13 22:00:23 +00:00
|
|
|
|
2012-06-22 07:37:49 +00:00
|
|
|
// WebAlarms
|
|
|
|
pref("dom.mozAlarms.enabled", true);
|
|
|
|
|
2013-03-29 03:49:41 +00:00
|
|
|
// SimplePush
|
2013-04-02 01:03:53 +00:00
|
|
|
pref("services.push.enabled", true);
|
2013-09-16 23:55:26 +00:00
|
|
|
// Debugging enabled.
|
|
|
|
pref("services.push.debug", false);
|
2013-06-17 18:36:58 +00:00
|
|
|
// Is the network connection allowed to be up?
|
|
|
|
// This preference should be used in UX to enable/disable push.
|
|
|
|
pref("services.push.connection.enabled", true);
|
2013-03-29 03:49:41 +00:00
|
|
|
// serverURL to be assigned by services team
|
2013-06-19 00:01:32 +00:00
|
|
|
pref("services.push.serverURL", "wss://push.services.mozilla.com/");
|
2013-03-29 03:49:41 +00:00
|
|
|
pref("services.push.userAgentID", "");
|
2013-05-14 10:18:19 +00:00
|
|
|
// Exponential back-off start is 5 seconds like in HTTP/1.1.
|
|
|
|
// Maximum back-off is pingInterval.
|
2013-03-29 03:49:41 +00:00
|
|
|
pref("services.push.retryBaseInterval", 5000);
|
2013-05-14 10:18:19 +00:00
|
|
|
// Interval at which to ping PushServer to check connection status. In
|
|
|
|
// milliseconds. If no reply is received within requestTimeout, the connection
|
|
|
|
// is considered closed.
|
|
|
|
pref("services.push.pingInterval", 1800000); // 30 minutes
|
2013-03-29 03:49:41 +00:00
|
|
|
// How long before a DOMRequest errors as timeout
|
|
|
|
pref("services.push.requestTimeout", 10000);
|
2014-07-09 08:37:58 +00:00
|
|
|
pref("services.push.pingInterval.default", 180000);// 3 min
|
|
|
|
pref("services.push.pingInterval.mobile", 180000); // 3 min
|
|
|
|
pref("services.push.pingInterval.wifi", 180000); // 3 min
|
|
|
|
// Adaptive ping
|
|
|
|
pref("services.push.adaptive.enabled", true);
|
|
|
|
pref("services.push.adaptive.lastGoodPingInterval", 180000);// 3 min
|
|
|
|
pref("services.push.adaptive.lastGoodPingInterval.mobile", 180000);// 3 min
|
|
|
|
pref("services.push.adaptive.lastGoodPingInterval.wifi", 180000);// 3 min
|
|
|
|
// Valid gap between the biggest good ping and the bad ping
|
|
|
|
pref("services.push.adaptive.gap", 60000); // 1 minute
|
|
|
|
// We limit the ping to this maximum value
|
|
|
|
pref("services.push.adaptive.upperLimit", 1740000); // 29 min
|
2013-03-29 03:49:41 +00:00
|
|
|
// enable udp wakeup support
|
|
|
|
pref("services.push.udp.wakeupEnabled", true);
|
2013-03-29 03:49:41 +00:00
|
|
|
|
2012-10-04 16:42:41 +00:00
|
|
|
// NetworkStats
|
2013-10-29 08:12:45 +00:00
|
|
|
#ifdef MOZ_WIDGET_GONK
|
2012-10-04 16:42:41 +00:00
|
|
|
pref("dom.mozNetworkStats.enabled", true);
|
2013-09-23 11:24:20 +00:00
|
|
|
pref("dom.webapps.firstRunWithSIM", true);
|
2012-10-04 21:19:05 +00:00
|
|
|
#endif
|
2012-10-04 16:42:41 +00:00
|
|
|
|
2014-03-10 03:54:15 +00:00
|
|
|
// ResourceStats
|
|
|
|
#ifdef MOZ_WIDGET_GONK
|
|
|
|
pref("dom.resource_stats.enabled", true);
|
|
|
|
#endif
|
|
|
|
|
2013-11-21 16:56:15 +00:00
|
|
|
#ifdef MOZ_B2G_RIL
|
|
|
|
// SingleVariant
|
|
|
|
pref("dom.mozApps.single_variant_sourcedir", "/persist/svoperapps");
|
|
|
|
#endif
|
|
|
|
|
2012-03-26 21:49:38 +00:00
|
|
|
// WebSettings
|
|
|
|
pref("dom.mozSettings.enabled", true);
|
2012-09-19 18:19:00 +00:00
|
|
|
pref("dom.mozPermissionSettings.enabled", true);
|
2012-03-26 21:49:38 +00:00
|
|
|
|
2012-02-07 06:48:50 +00:00
|
|
|
// controls if we want camera support
|
|
|
|
pref("device.camera.enabled", true);
|
|
|
|
pref("media.realtime_decoder.enabled", true);
|
|
|
|
|
2012-08-21 16:46:27 +00:00
|
|
|
// TCPSocket
|
|
|
|
pref("dom.mozTCPSocket.enabled", true);
|
|
|
|
|
2013-09-27 18:38:14 +00:00
|
|
|
// WebPayment
|
|
|
|
pref("dom.mozPay.enabled", true);
|
|
|
|
|
2012-01-12 08:36:46 +00:00
|
|
|
// "Preview" landing of bug 710563, which is bogged down in analysis
|
|
|
|
// of talos regression. This is a needed change for higher-framerate
|
|
|
|
// CSS animations, and incidentally works around an apparent bug in
|
|
|
|
// our handling of requestAnimationFrame() listeners, which are
|
|
|
|
// supposed to enable this REPEATING_PRECISE_CAN_SKIP behavior. The
|
|
|
|
// secondary bug isn't really worth investigating since it's obseleted
|
|
|
|
// by bug 710563.
|
|
|
|
pref("layout.frame_rate.precise", true);
|
2012-02-03 05:20:36 +00:00
|
|
|
|
2012-02-24 00:40:49 +00:00
|
|
|
// Handle hardware buttons in the b2g chrome package
|
|
|
|
pref("b2g.keys.menu.enabled", true);
|
|
|
|
|
2012-06-16 06:16:15 +00:00
|
|
|
// Screen timeout in seconds
|
2012-02-03 05:20:36 +00:00
|
|
|
pref("power.screen.timeout", 60);
|
2012-02-12 08:08:58 +00:00
|
|
|
|
|
|
|
pref("full-screen-api.enabled", true);
|
2012-02-16 18:20:23 +00:00
|
|
|
|
2012-07-13 10:21:23 +00:00
|
|
|
#ifndef MOZ_WIDGET_GONK
|
|
|
|
// If we're not actually on physical hardware, don't make the top level widget
|
|
|
|
// fullscreen when transitioning to fullscreen. This means in emulated
|
|
|
|
// environments (like the b2g desktop client) we won't make the client window
|
|
|
|
// fill the whole screen, we'll just make the content fill the client window,
|
|
|
|
// i.e. it won't give the impression to content that the number of device
|
|
|
|
// screen pixels changes!
|
|
|
|
pref("full-screen-api.ignore-widgets", true);
|
|
|
|
#endif
|
|
|
|
|
2012-02-16 18:20:23 +00:00
|
|
|
pref("media.volume.steps", 10);
|
2012-03-12 23:46:08 +00:00
|
|
|
|
2012-08-22 23:26:32 +00:00
|
|
|
#ifdef ENABLE_MARIONETTE
|
2012-03-22 15:19:57 +00:00
|
|
|
//Enable/disable marionette server, set listening port
|
|
|
|
pref("marionette.defaultPrefs.enabled", true);
|
|
|
|
pref("marionette.defaultPrefs.port", 2828);
|
2013-01-28 23:36:58 +00:00
|
|
|
#ifndef MOZ_WIDGET_GONK
|
|
|
|
// On desktop builds, we need to force the socket to listen on localhost only
|
|
|
|
pref("marionette.force-local", true);
|
|
|
|
#endif
|
2012-08-22 23:26:32 +00:00
|
|
|
#endif
|
2012-03-22 15:19:57 +00:00
|
|
|
|
2012-03-21 22:50:53 +00:00
|
|
|
#ifdef MOZ_UPDATER
|
2012-09-19 23:13:31 +00:00
|
|
|
// When we're applying updates, we can't let anything hang us on
|
|
|
|
// quit+restart. The user has no recourse.
|
2014-04-24 16:48:00 +00:00
|
|
|
pref("shutdown.watchdog.timeoutSecs", 10);
|
2012-09-12 16:53:03 +00:00
|
|
|
// Timeout before the update prompt automatically installs the update
|
|
|
|
pref("b2g.update.apply-prompt-timeout", 60000); // milliseconds
|
2012-10-02 18:33:49 +00:00
|
|
|
// Amount of time to wait after the user is idle before prompting to apply an update
|
|
|
|
pref("b2g.update.apply-idle-timeout", 600000); // milliseconds
|
2013-01-14 23:10:19 +00:00
|
|
|
// Amount of time after which connection will be restarted if no progress
|
|
|
|
pref("b2g.update.download-watchdog-timeout", 120000); // milliseconds
|
|
|
|
pref("b2g.update.download-watchdog-max-retries", 5);
|
2012-09-12 16:53:03 +00:00
|
|
|
|
2012-03-21 22:50:53 +00:00
|
|
|
pref("app.update.enabled", true);
|
2012-09-12 16:53:03 +00:00
|
|
|
pref("app.update.auto", false);
|
|
|
|
pref("app.update.silent", false);
|
2012-03-21 22:50:53 +00:00
|
|
|
pref("app.update.mode", 0);
|
|
|
|
pref("app.update.incompatible.mode", 0);
|
2012-09-12 02:13:14 +00:00
|
|
|
pref("app.update.staging.enabled", true);
|
2012-03-21 22:50:53 +00:00
|
|
|
pref("app.update.service.enabled", true);
|
|
|
|
|
2014-05-28 14:43:03 +00:00
|
|
|
pref("app.update.url", "https://aus4.mozilla.org/update/3/%PRODUCT%/%VERSION%/%BUILD_ID%/%PRODUCT_DEVICE%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/update.xml");
|
2012-09-28 22:03:05 +00:00
|
|
|
pref("app.update.channel", "@MOZ_UPDATE_CHANNEL@");
|
|
|
|
|
2012-03-21 22:50:53 +00:00
|
|
|
// Interval at which update manifest is fetched. In units of seconds.
|
2012-09-14 23:06:22 +00:00
|
|
|
pref("app.update.interval", 86400); // 1 day
|
2012-03-26 07:46:21 +00:00
|
|
|
// Don't throttle background updates.
|
|
|
|
pref("app.update.download.backgroundInterval", 0);
|
2012-03-21 22:50:53 +00:00
|
|
|
|
2012-12-17 23:23:14 +00:00
|
|
|
// Retry update socket connections every 30 seconds in the cases of certain kinds of errors
|
|
|
|
pref("app.update.socket.retryTimeout", 30000);
|
|
|
|
|
|
|
|
// Max of 20 consecutive retries (total 10 minutes) before giving up and marking
|
|
|
|
// the update download as failed.
|
|
|
|
// Note: Offline errors will always retry when the network comes online.
|
|
|
|
pref("app.update.socket.maxErrors", 20);
|
|
|
|
|
2012-03-21 22:50:53 +00:00
|
|
|
// Enable update logging for now, to diagnose growing pains in the
|
|
|
|
// field.
|
|
|
|
pref("app.update.log", true);
|
2012-09-19 23:13:31 +00:00
|
|
|
#else
|
|
|
|
// Explicitly disable the shutdown watchdog. It's enabled by default.
|
|
|
|
// When the updater is disabled, we want to know about shutdown hangs.
|
|
|
|
pref("shutdown.watchdog.timeoutSecs", -1);
|
2012-03-21 22:50:53 +00:00
|
|
|
#endif
|
2012-05-04 18:02:05 +00:00
|
|
|
|
2013-09-11 12:00:48 +00:00
|
|
|
// Check daily for apps updates.
|
|
|
|
pref("webapps.update.interval", 86400);
|
|
|
|
|
2012-05-04 18:02:05 +00:00
|
|
|
// Extensions preferences
|
|
|
|
pref("extensions.update.enabled", false);
|
|
|
|
pref("extensions.getAddons.cache.enabled", false);
|
|
|
|
|
2012-05-04 18:02:05 +00:00
|
|
|
// Context Menu
|
|
|
|
pref("ui.click_hold_context_menus", true);
|
2014-04-25 13:01:00 +00:00
|
|
|
pref("ui.click_hold_context_menus.delay", 400);
|
2012-05-04 18:02:05 +00:00
|
|
|
|
2012-05-09 23:18:47 +00:00
|
|
|
// Enable device storage
|
|
|
|
pref("device.storage.enabled", true);
|
2012-06-01 00:54:23 +00:00
|
|
|
|
2013-07-07 20:41:55 +00:00
|
|
|
// Enable pre-installed applications
|
|
|
|
pref("dom.webapps.useCurrentProfile", true);
|
|
|
|
|
2013-04-30 13:01:46 +00:00
|
|
|
// Enable system message
|
|
|
|
pref("dom.sysmsg.enabled", true);
|
2012-09-27 04:33:42 +00:00
|
|
|
pref("media.plugins.enabled", false);
|
|
|
|
pref("media.omx.enabled", true);
|
2013-09-23 09:53:36 +00:00
|
|
|
pref("media.rtsp.enabled", true);
|
2014-04-23 04:07:09 +00:00
|
|
|
pref("media.rtsp.video.enabled", true);
|
2012-06-07 14:43:23 +00:00
|
|
|
|
|
|
|
// Disable printing (particularly, window.print())
|
|
|
|
pref("dom.disable_window_print", true);
|
|
|
|
|
|
|
|
// Disable window.showModalDialog
|
|
|
|
pref("dom.disable_window_showModalDialog", true);
|
2012-08-08 19:46:38 +00:00
|
|
|
|
|
|
|
// Enable new experimental html forms
|
|
|
|
pref("dom.experimental_forms", true);
|
2013-09-12 18:11:00 +00:00
|
|
|
pref("dom.forms.number", true);
|
2012-06-13 04:20:27 +00:00
|
|
|
|
2013-10-28 18:56:59 +00:00
|
|
|
// Don't enable <input type=color> yet as we don't have a color picker
|
|
|
|
// implemented for b2g (bug 875751)
|
|
|
|
pref("dom.forms.color", false);
|
|
|
|
|
2012-06-13 04:20:27 +00:00
|
|
|
// Turns on gralloc-based direct texturing for Gonk
|
|
|
|
pref("gfx.gralloc.enabled", false);
|
2012-07-13 21:40:46 +00:00
|
|
|
|
2014-04-22 21:08:28 +00:00
|
|
|
// This preference instructs the JS engine to discard the
|
|
|
|
// source of any privileged JS after compilation. This saves
|
|
|
|
// memory, but makes things like Function.prototype.toSource()
|
|
|
|
// fail.
|
2014-04-22 21:08:28 +00:00
|
|
|
pref("javascript.options.discardSystemSource", true);
|
2014-04-22 21:08:28 +00:00
|
|
|
|
2012-09-14 18:52:07 +00:00
|
|
|
// XXXX REMOVE FOR PRODUCTION. Turns on GC and CC logging
|
2012-10-25 19:01:59 +00:00
|
|
|
pref("javascript.options.mem.log", false);
|
2012-07-13 21:40:46 +00:00
|
|
|
|
|
|
|
// Increase mark slice time from 10ms to 30ms
|
|
|
|
pref("javascript.options.mem.gc_incremental_slice_ms", 30);
|
2012-08-03 10:35:14 +00:00
|
|
|
|
2013-07-14 23:36:50 +00:00
|
|
|
// Increase time to get more high frequency GC on benchmarks from 1000ms to 1500ms
|
|
|
|
pref("javascript.options.mem.gc_high_frequency_time_limit_ms", 1500);
|
|
|
|
|
|
|
|
pref("javascript.options.mem.gc_high_frequency_heap_growth_max", 300);
|
2013-03-05 19:08:44 +00:00
|
|
|
pref("javascript.options.mem.gc_high_frequency_heap_growth_min", 120);
|
2012-08-16 23:04:11 +00:00
|
|
|
pref("javascript.options.mem.gc_high_frequency_high_limit_mb", 40);
|
2013-07-14 23:36:50 +00:00
|
|
|
pref("javascript.options.mem.gc_high_frequency_low_limit_mb", 0);
|
2013-03-05 19:08:44 +00:00
|
|
|
pref("javascript.options.mem.gc_low_frequency_heap_growth", 120);
|
2012-10-11 00:26:19 +00:00
|
|
|
pref("javascript.options.mem.high_water_mark", 6);
|
2013-05-16 22:49:43 +00:00
|
|
|
pref("javascript.options.mem.gc_allocation_threshold_mb", 1);
|
2013-06-21 01:06:53 +00:00
|
|
|
pref("javascript.options.mem.gc_decommit_threshold_mb", 1);
|
2014-07-16 09:01:20 +00:00
|
|
|
#ifdef JSGC_GENERATIONAL
|
|
|
|
pref("javascript.options.mem.gc_min_empty_chunk_count", 1);
|
|
|
|
#else
|
|
|
|
pref("javascript.options.mem.gc_min_empty_chunk_count", 0);
|
|
|
|
#endif
|
|
|
|
pref("javascript.options.mem.gc_max_empty_chunk_count", 2);
|
2013-01-10 22:50:40 +00:00
|
|
|
|
2012-08-03 10:35:14 +00:00
|
|
|
// Show/Hide scrollbars when active/inactive
|
|
|
|
pref("ui.showHideScrollbars", 1);
|
2013-11-22 12:45:05 +00:00
|
|
|
pref("ui.useOverlayScrollbars", 1);
|
2014-09-29 19:32:11 +00:00
|
|
|
pref("ui.scrollbarFadeBeginDelay", 450);
|
|
|
|
pref("ui.scrollbarFadeDuration", 200);
|
2012-08-05 05:09:39 +00:00
|
|
|
|
|
|
|
// Enable the ProcessPriorityManager, and give processes with no visible
|
|
|
|
// documents a 1s grace period before they're eligible to be marked as
|
2014-01-15 23:17:59 +00:00
|
|
|
// background. Background processes that are perceivable due to playing
|
|
|
|
// media are given a longer grace period to accomodate changing tracks, etc.
|
2012-08-05 05:09:39 +00:00
|
|
|
pref("dom.ipc.processPriorityManager.enabled", true);
|
2013-01-26 21:14:01 +00:00
|
|
|
pref("dom.ipc.processPriorityManager.backgroundGracePeriodMS", 1000);
|
2014-01-15 23:17:59 +00:00
|
|
|
pref("dom.ipc.processPriorityManager.backgroundPerceivableGracePeriodMS", 5000);
|
2013-02-14 20:41:30 +00:00
|
|
|
pref("dom.ipc.processPriorityManager.temporaryPriorityLockMS", 5000);
|
2012-10-31 17:29:14 +00:00
|
|
|
|
2013-10-01 03:54:59 +00:00
|
|
|
// Number of different background levels for background processes. We use
|
|
|
|
// these different levels to force the low-memory killer to kill processes in
|
|
|
|
// a LRU order.
|
|
|
|
pref("dom.ipc.processPriorityManager.backgroundLRUPoolLevels", 5);
|
|
|
|
|
2013-05-09 20:27:06 +00:00
|
|
|
// Kernel parameters for process priorities. These affect how processes are
|
|
|
|
// killed on low-memory and their relative CPU priorities.
|
2013-04-26 00:53:27 +00:00
|
|
|
//
|
|
|
|
// Note: The maximum nice value on Linux is 19, but the max value you should
|
|
|
|
// use here is 18. NSPR adds 1 to some threads' nice values, to mark
|
|
|
|
// low-priority threads. If the process priority manager were to renice a
|
|
|
|
// process (and all its threads) to 19, all threads would have the same
|
|
|
|
// niceness. Then when we reniced the process to (say) 10, all threads would
|
|
|
|
// /still/ have the same niceness; we'd effectively have erased NSPR's thread
|
|
|
|
// priorities.
|
2013-05-09 20:27:06 +00:00
|
|
|
|
2014-03-04 10:23:00 +00:00
|
|
|
// The kernel can only accept 6 (OomScoreAdjust, KillUnderKB) pairs. But it is
|
2013-09-24 08:10:20 +00:00
|
|
|
// okay, kernel will still kill processes with larger OomScoreAdjust first even
|
2014-03-04 10:23:00 +00:00
|
|
|
// its OomScoreAdjust don't have a corresponding KillUnderKB.
|
2013-09-24 08:10:20 +00:00
|
|
|
|
2013-05-09 20:27:06 +00:00
|
|
|
pref("hal.processPriorityManager.gonk.MASTER.OomScoreAdjust", 0);
|
2014-03-04 10:23:00 +00:00
|
|
|
pref("hal.processPriorityManager.gonk.MASTER.KillUnderKB", 4096);
|
2013-05-09 20:27:06 +00:00
|
|
|
pref("hal.processPriorityManager.gonk.MASTER.Nice", 0);
|
|
|
|
|
2014-03-13 07:24:42 +00:00
|
|
|
pref("hal.processPriorityManager.gonk.PREALLOC.OomScoreAdjust", 67);
|
|
|
|
pref("hal.processPriorityManager.gonk.PREALLOC.Nice", 18);
|
|
|
|
|
2013-05-09 20:27:06 +00:00
|
|
|
pref("hal.processPriorityManager.gonk.FOREGROUND_HIGH.OomScoreAdjust", 67);
|
2014-03-04 10:23:00 +00:00
|
|
|
pref("hal.processPriorityManager.gonk.FOREGROUND_HIGH.KillUnderKB", 5120);
|
2013-05-09 20:27:06 +00:00
|
|
|
pref("hal.processPriorityManager.gonk.FOREGROUND_HIGH.Nice", 0);
|
|
|
|
|
|
|
|
pref("hal.processPriorityManager.gonk.FOREGROUND.OomScoreAdjust", 134);
|
2014-03-04 10:23:00 +00:00
|
|
|
pref("hal.processPriorityManager.gonk.FOREGROUND.KillUnderKB", 6144);
|
2013-05-09 20:27:06 +00:00
|
|
|
pref("hal.processPriorityManager.gonk.FOREGROUND.Nice", 1);
|
|
|
|
|
2013-09-24 08:10:20 +00:00
|
|
|
pref("hal.processPriorityManager.gonk.FOREGROUND_KEYBOARD.OomScoreAdjust", 200);
|
|
|
|
pref("hal.processPriorityManager.gonk.FOREGROUND_KEYBOARD.Nice", 1);
|
|
|
|
|
2013-09-11 07:12:56 +00:00
|
|
|
pref("hal.processPriorityManager.gonk.BACKGROUND_PERCEIVABLE.OomScoreAdjust", 400);
|
2014-03-04 10:23:00 +00:00
|
|
|
pref("hal.processPriorityManager.gonk.BACKGROUND_PERCEIVABLE.KillUnderKB", 7168);
|
2013-05-17 02:59:33 +00:00
|
|
|
pref("hal.processPriorityManager.gonk.BACKGROUND_PERCEIVABLE.Nice", 7);
|
2013-05-09 20:27:06 +00:00
|
|
|
|
2013-09-11 07:12:56 +00:00
|
|
|
pref("hal.processPriorityManager.gonk.BACKGROUND_HOMESCREEN.OomScoreAdjust", 534);
|
2014-03-04 10:23:00 +00:00
|
|
|
pref("hal.processPriorityManager.gonk.BACKGROUND_HOMESCREEN.KillUnderKB", 8192);
|
2013-05-09 20:27:06 +00:00
|
|
|
pref("hal.processPriorityManager.gonk.BACKGROUND_HOMESCREEN.Nice", 18);
|
|
|
|
|
2013-09-11 07:12:56 +00:00
|
|
|
pref("hal.processPriorityManager.gonk.BACKGROUND.OomScoreAdjust", 667);
|
2014-03-04 10:23:00 +00:00
|
|
|
pref("hal.processPriorityManager.gonk.BACKGROUND.KillUnderKB", 20480);
|
2013-05-09 20:27:06 +00:00
|
|
|
pref("hal.processPriorityManager.gonk.BACKGROUND.Nice", 18);
|
|
|
|
|
|
|
|
// Processes get this niceness when they have low CPU priority.
|
|
|
|
pref("hal.processPriorityManager.gonk.LowCPUNice", 18);
|
|
|
|
|
2014-05-05 15:38:00 +00:00
|
|
|
// By default the compositor thread on gonk runs without real-time priority. RT
|
|
|
|
// priority can be enabled by setting this pref to a value between 1 and 99.
|
|
|
|
// Note that audio processing currently runs at RT priority 2 or 3 at most.
|
|
|
|
//
|
2014-09-24 14:56:00 +00:00
|
|
|
// If RT priority is disabled, then the compositor nice value is used. We prefer
|
|
|
|
// to use a nice value of -4, which matches Android's preferences. Setting a preference
|
|
|
|
// of RT priority 1 would mean it is higher than audio, which is -16. The compositor
|
|
|
|
// priority must be below the audio thread.
|
2014-05-05 15:38:00 +00:00
|
|
|
//
|
|
|
|
// Do not change these values without gfx team review.
|
|
|
|
pref("hal.gonk.COMPOSITOR.rt_priority", 0);
|
2014-09-24 14:56:00 +00:00
|
|
|
pref("hal.gonk.COMPOSITOR.nice", -4);
|
2014-05-05 15:38:00 +00:00
|
|
|
|
2013-05-09 20:27:06 +00:00
|
|
|
// Fire a memory pressure event when the system has less than Xmb of memory
|
2014-03-04 10:23:00 +00:00
|
|
|
// remaining. You should probably set this just above Y.KillUnderKB for
|
2013-05-09 20:27:06 +00:00
|
|
|
// the highest priority class Y that you want to make an effort to keep alive.
|
|
|
|
// (For example, we want BACKGROUND_PERCEIVABLE to stay alive.) If you set
|
|
|
|
// this too high, then we'll send out a memory pressure event every Z seconds
|
|
|
|
// (see below), even while we have processes that we would happily kill in
|
|
|
|
// order to free up memory.
|
2014-03-04 10:23:00 +00:00
|
|
|
pref("hal.processPriorityManager.gonk.notifyLowMemUnderKB", 14336);
|
2013-05-09 20:27:06 +00:00
|
|
|
|
|
|
|
// We wait this long before polling the memory-pressure fd after seeing one
|
|
|
|
// memory pressure event. (When we're not under memory pressure, we sit
|
|
|
|
// blocked on a poll(), and this pref has no effect.)
|
|
|
|
pref("gonk.systemMemoryPressureRecoveryPollMS", 5000);
|
2012-08-16 01:46:03 +00:00
|
|
|
|
2014-09-02 19:05:36 +00:00
|
|
|
#ifndef DEBUG
|
2012-08-16 01:46:03 +00:00
|
|
|
// Enable pre-launching content processes for improved startup time
|
|
|
|
// (hiding latency).
|
2012-10-03 00:13:40 +00:00
|
|
|
pref("dom.ipc.processPrelaunch.enabled", true);
|
2012-08-16 01:46:03 +00:00
|
|
|
// Wait this long before pre-launching a new subprocess.
|
2013-01-24 18:39:18 +00:00
|
|
|
pref("dom.ipc.processPrelaunch.delayMs", 5000);
|
2014-09-02 19:05:36 +00:00
|
|
|
#endif
|
2012-08-20 16:30:08 +00:00
|
|
|
|
2014-03-26 04:56:35 +00:00
|
|
|
pref("dom.ipc.reuse_parent_app", false);
|
|
|
|
|
2013-02-14 20:41:30 +00:00
|
|
|
// When a process receives a system message, we hold a CPU wake lock on its
|
|
|
|
// behalf for this many seconds, or until it handles the system message,
|
|
|
|
// whichever comes first.
|
|
|
|
pref("dom.ipc.systemMessageCPULockTimeoutSec", 30);
|
|
|
|
|
2012-08-20 16:30:08 +00:00
|
|
|
// Ignore the "dialog=1" feature in window.open.
|
|
|
|
pref("dom.disable_window_open_dialog_feature", true);
|
2012-08-27 03:14:42 +00:00
|
|
|
|
|
|
|
// Screen reader support
|
|
|
|
pref("accessibility.accessfu.activate", 2);
|
2013-07-11 20:42:11 +00:00
|
|
|
pref("accessibility.accessfu.quicknav_modes", "Link,Heading,FormElement,Landmark,ListItem");
|
2013-07-10 14:25:57 +00:00
|
|
|
// Setting for an utterance order (0 - description first, 1 - description last).
|
|
|
|
pref("accessibility.accessfu.utterance", 1);
|
2013-06-17 20:25:24 +00:00
|
|
|
// Whether to skip images with empty alt text
|
|
|
|
pref("accessibility.accessfu.skip_empty_images", true);
|
2012-09-03 10:59:55 +00:00
|
|
|
|
2012-09-13 22:43:16 +00:00
|
|
|
// Enable hit-target fluffing
|
2012-09-13 22:43:16 +00:00
|
|
|
pref("ui.touch.radius.enabled", true);
|
2012-09-29 08:29:19 +00:00
|
|
|
pref("ui.touch.radius.leftmm", 3);
|
|
|
|
pref("ui.touch.radius.topmm", 5);
|
|
|
|
pref("ui.touch.radius.rightmm", 3);
|
|
|
|
pref("ui.touch.radius.bottommm", 2);
|
|
|
|
|
2012-09-13 22:43:16 +00:00
|
|
|
pref("ui.mouse.radius.enabled", true);
|
2012-09-29 08:29:19 +00:00
|
|
|
pref("ui.mouse.radius.leftmm", 3);
|
|
|
|
pref("ui.mouse.radius.topmm", 5);
|
|
|
|
pref("ui.mouse.radius.rightmm", 3);
|
|
|
|
pref("ui.mouse.radius.bottommm", 2);
|
2012-09-13 22:43:16 +00:00
|
|
|
|
2012-09-03 10:59:55 +00:00
|
|
|
// Disable native prompt
|
|
|
|
pref("browser.prompt.allowNative", false);
|
2012-09-28 22:39:20 +00:00
|
|
|
|
|
|
|
// Minimum delay in milliseconds between network activity notifications (0 means
|
|
|
|
// no notifications). The delay is the same for both download and upload, though
|
|
|
|
// they are handled separately. This pref is only read once at startup:
|
|
|
|
// a restart is required to enable a new value.
|
|
|
|
pref("network.activity.blipIntervalMilliseconds", 250);
|
2012-10-03 20:27:46 +00:00
|
|
|
|
2012-12-29 18:11:04 +00:00
|
|
|
// By default we want the NetworkManager service to manage Gecko's offline
|
|
|
|
// status for us according to the state of Wifi/cellular data connections.
|
|
|
|
// In some environments, such as the emulator or hardware with other network
|
|
|
|
// connectivity, this is not desireable, however, in which case this pref
|
|
|
|
// can be flipped to false.
|
|
|
|
pref("network.gonk.manage-offline-status", true);
|
|
|
|
|
2014-05-05 10:53:00 +00:00
|
|
|
// On Firefox Mulet, we can't enable shared JSM scope
|
|
|
|
// as it breaks most Firefox JSMs (see bug 961777)
|
|
|
|
#ifndef MOZ_MULET
|
2014-09-30 16:25:41 +00:00
|
|
|
// Break any JSMs or JS components that rely on shared scope
|
|
|
|
#ifndef DEBUG
|
2012-11-03 01:03:13 +00:00
|
|
|
pref("jsloader.reuseGlobal", true);
|
2014-05-05 10:53:00 +00:00
|
|
|
#endif
|
2014-09-30 16:25:41 +00:00
|
|
|
#endif
|
2012-11-12 16:41:23 +00:00
|
|
|
|
2012-11-20 19:55:14 +00:00
|
|
|
// Enable font inflation for browser tab content.
|
|
|
|
pref("font.size.inflation.minTwips", 120);
|
2012-11-28 20:16:01 +00:00
|
|
|
// And disable it for lingering master-process UI.
|
|
|
|
pref("font.size.inflation.disabledInMasterProcess", true);
|
2012-11-20 19:55:14 +00:00
|
|
|
|
2012-11-12 16:41:23 +00:00
|
|
|
// Enable freeing dirty pages when minimizing memory; this reduces memory
|
|
|
|
// consumption when applications are sent to the background.
|
|
|
|
pref("memory.free_dirty_pages", true);
|
2012-11-29 03:39:58 +00:00
|
|
|
|
2013-12-05 03:32:50 +00:00
|
|
|
// Enable the Linux-specific, system-wide memory reporter.
|
|
|
|
pref("memory.system_memory_reporter", true);
|
|
|
|
|
2014-02-21 02:35:43 +00:00
|
|
|
// Don't dump memory reports on OOM, by default.
|
|
|
|
pref("memory.dump_reports_on_oom", false);
|
|
|
|
|
2013-11-26 22:19:41 +00:00
|
|
|
pref("layout.imagevisibility.enabled", true);
|
2013-09-15 18:51:35 +00:00
|
|
|
pref("layout.imagevisibility.numscrollportwidths", 1);
|
|
|
|
pref("layout.imagevisibility.numscrollportheights", 1);
|
2013-02-25 00:59:24 +00:00
|
|
|
|
2013-01-07 10:03:12 +00:00
|
|
|
// Enable native identity (persona/browserid)
|
2013-01-07 03:24:14 +00:00
|
|
|
pref("dom.identity.enabled", true);
|
|
|
|
|
2012-11-22 02:40:57 +00:00
|
|
|
// Wait up to this much milliseconds when orientation changed
|
|
|
|
pref("layers.orientation.sync.timeout", 1000);
|
2013-01-03 23:39:25 +00:00
|
|
|
|
|
|
|
// Don't discard WebGL contexts for foreground apps on memory
|
|
|
|
// pressure.
|
|
|
|
pref("webgl.can-lose-context-in-foreground", false);
|
2013-01-14 06:43:25 +00:00
|
|
|
|
|
|
|
// Allow nsMemoryInfoDumper to create a fifo in the temp directory. We use
|
|
|
|
// this fifo to trigger about:memory dumps, among other things.
|
|
|
|
pref("memory_info_dumper.watch_fifo.enabled", true);
|
|
|
|
pref("memory_info_dumper.watch_fifo.directory", "/data/local");
|
2013-01-21 10:48:48 +00:00
|
|
|
|
2013-09-18 14:57:08 +00:00
|
|
|
// See ua-update.json.in for the packaged UA override list
|
|
|
|
pref("general.useragent.updates.enabled", true);
|
2013-10-22 15:15:38 +00:00
|
|
|
pref("general.useragent.updates.url", "https://dynamicua.cdn.mozilla.net/0/%APP_ID%");
|
2013-09-18 14:57:08 +00:00
|
|
|
pref("general.useragent.updates.interval", 604800); // 1 week
|
|
|
|
pref("general.useragent.updates.retry", 86400); // 1 day
|
2013-02-26 01:44:12 +00:00
|
|
|
|
2013-04-26 00:53:25 +00:00
|
|
|
// Make <audio> and <video> talk to the AudioChannelService.
|
|
|
|
pref("media.useAudioChannelService", true);
|
|
|
|
|
2013-02-26 01:44:12 +00:00
|
|
|
pref("b2g.version", @MOZ_B2G_VERSION@);
|
2014-05-05 22:24:58 +00:00
|
|
|
pref("b2g.osName", @MOZ_B2G_OS_NAME@);
|
2013-03-14 05:55:25 +00:00
|
|
|
|
|
|
|
// Disable console buffering to save memory.
|
|
|
|
pref("consoleservice.buffered", false);
|
2013-04-05 00:14:46 +00:00
|
|
|
|
|
|
|
#ifdef MOZ_WIDGET_GONK
|
|
|
|
// Performance testing suggests 2k is a better page size for SQLite.
|
|
|
|
pref("toolkit.storage.pageSize", 2048);
|
2013-04-26 00:53:25 +00:00
|
|
|
#endif
|
2013-05-06 17:41:07 +00:00
|
|
|
|
2013-05-08 11:50:13 +00:00
|
|
|
// Enable captive portal detection.
|
|
|
|
pref("captivedetect.canonicalURL", "http://detectportal.firefox.com/success.txt");
|
|
|
|
pref("captivedetect.canonicalContent", "success\n");
|
|
|
|
|
2013-05-06 17:41:07 +00:00
|
|
|
// The url of the manifest we use for ADU pings.
|
|
|
|
pref("ping.manifestURL", "https://marketplace.firefox.com/packaged.webapp");
|
2013-05-09 22:57:31 +00:00
|
|
|
|
|
|
|
// Enable the disk space watcher
|
|
|
|
pref("disk_space_watcher.enabled", true);
|
2013-06-12 13:44:56 +00:00
|
|
|
|
2013-06-22 14:22:05 +00:00
|
|
|
// SNTP preferences.
|
|
|
|
pref("network.sntp.maxRetryCount", 10);
|
|
|
|
pref("network.sntp.refreshPeriod", 86400); // In seconds.
|
|
|
|
pref("network.sntp.pools", // Servers separated by ';'.
|
|
|
|
"0.pool.ntp.org;1.pool.ntp.org;2.pool.ntp.org;3.pool.ntp.org");
|
|
|
|
pref("network.sntp.port", 123);
|
|
|
|
pref("network.sntp.timeout", 30); // In seconds.
|
|
|
|
|
2013-10-02 17:27:15 +00:00
|
|
|
// Enable dataStore
|
2013-10-05 23:35:19 +00:00
|
|
|
pref("dom.datastore.enabled", true);
|
2014-06-27 07:58:47 +00:00
|
|
|
// When an entry is changed, use two timers to fire system messages in a more
|
|
|
|
// moderate pattern.
|
|
|
|
pref("dom.datastore.sysMsgOnChangeShortTimeoutSec", 10);
|
|
|
|
pref("dom.datastore.sysMsgOnChangeLongTimeoutSec", 60);
|
2013-10-02 17:27:07 +00:00
|
|
|
|
2013-07-30 14:03:06 +00:00
|
|
|
// DOM Inter-App Communication API.
|
|
|
|
pref("dom.inter-app-communication-api.enabled", true);
|
|
|
|
|
2013-08-16 19:07:05 +00:00
|
|
|
// Allow ADB to run for this many hours before disabling
|
|
|
|
// (only applies when marionette is disabled)
|
|
|
|
// 0 disables the timer.
|
|
|
|
pref("b2g.adb.timeout-hours", 12);
|
2013-09-06 12:02:12 +00:00
|
|
|
|
2013-09-25 19:38:41 +00:00
|
|
|
// InputMethod so we can do soft keyboards
|
|
|
|
pref("dom.mozInputMethod.enabled", true);
|
|
|
|
|
2013-09-10 16:52:33 +00:00
|
|
|
// Absolute path to the devtool unix domain socket file used
|
|
|
|
// to communicate with a usb cable via adb forward
|
|
|
|
pref("devtools.debugger.unix-domain-socket", "/data/local/debugger-socket");
|
|
|
|
|
2013-09-06 12:02:12 +00:00
|
|
|
// enable Skia/GL (OpenGL-accelerated 2D drawing) for large enough 2d canvases,
|
|
|
|
// falling back to Skia/software for smaller canvases
|
2013-11-22 11:06:05 +00:00
|
|
|
#ifdef MOZ_WIDGET_GONK
|
2013-09-06 12:02:12 +00:00
|
|
|
pref("gfx.canvas.azure.backends", "skia");
|
|
|
|
pref("gfx.canvas.azure.accelerated", true);
|
2013-11-22 11:06:05 +00:00
|
|
|
#endif
|
2013-09-14 19:46:35 +00:00
|
|
|
|
2013-10-22 19:15:24 +00:00
|
|
|
// Turn on dynamic cache size for Skia
|
|
|
|
pref("gfx.canvas.skiagl.dynamic-cache", true);
|
|
|
|
|
2014-03-28 03:48:22 +00:00
|
|
|
// Limit skia to canvases the size of the device screen or smaller
|
|
|
|
pref("gfx.canvas.max-size-for-skia-gl", -1);
|
|
|
|
|
2013-10-24 05:17:00 +00:00
|
|
|
// enable fence with readpixels for SurfaceStream
|
|
|
|
pref("gfx.gralloc.fence-with-readpixels", true);
|
|
|
|
|
2013-09-24 21:21:10 +00:00
|
|
|
// The url of the page used to display network error details.
|
|
|
|
pref("b2g.neterror.url", "app://system.gaiamobile.org/net_error.html");
|
2013-09-27 17:03:05 +00:00
|
|
|
|
2014-08-29 00:20:26 +00:00
|
|
|
// The origin used for the shared themes uri space.
|
|
|
|
pref("b2g.theme.origin", "app://theme.gaiamobile.org");
|
|
|
|
pref("dom.mozApps.themable", true);
|
|
|
|
pref("dom.mozApps.selected_theme", "default_theme.gaiamobile.org");
|
|
|
|
|
2013-09-27 17:03:05 +00:00
|
|
|
// Enable Web Speech synthesis API
|
|
|
|
pref("media.webspeech.synth.enabled", true);
|
2013-11-28 07:17:39 +00:00
|
|
|
|
2013-12-20 21:43:46 +00:00
|
|
|
// Downloads API
|
|
|
|
pref("dom.mozDownloads.enabled", true);
|
|
|
|
pref("dom.downloads.max_retention_days", 7);
|
|
|
|
|
2014-03-14 21:24:23 +00:00
|
|
|
// External Helper Application Handling
|
|
|
|
//
|
|
|
|
// All external helper application handling can require the docshell to be
|
|
|
|
// active before allowing the external helper app service to handle content.
|
|
|
|
//
|
|
|
|
// To prevent SD card DoS attacks via downloads we disable background handling.
|
|
|
|
//
|
|
|
|
pref("security.exthelperapp.disable_background_handling", true);
|
|
|
|
|
2013-12-03 17:48:01 +00:00
|
|
|
// Inactivity time in milliseconds after which we shut down the OS.File worker.
|
|
|
|
pref("osfile.reset_worker_delay", 5000);
|
|
|
|
|
2013-12-13 17:23:49 +00:00
|
|
|
// APZC preferences.
|
|
|
|
//
|
|
|
|
// Gaia relies heavily on scroll events for now, so lets fire them
|
|
|
|
// more often than the default value (100).
|
|
|
|
pref("apz.asyncscroll.throttle", 40);
|
2014-02-27 13:43:02 +00:00
|
|
|
pref("apz.pan_repaint_interval", 16);
|
2014-01-06 22:13:57 +00:00
|
|
|
|
2014-04-28 11:56:00 +00:00
|
|
|
// APZ physics settings, tuned by UX designers
|
|
|
|
pref("apz.max_velocity_inches_per_ms", "0.07");
|
|
|
|
pref("apz.fling_friction", "0.003");
|
2014-02-24 21:08:35 +00:00
|
|
|
|
2014-03-07 09:27:18 +00:00
|
|
|
// Tweak default displayport values to reduce the risk of running out of
|
|
|
|
// memory when zooming in
|
|
|
|
pref("apz.x_skate_size_multiplier", "1.25");
|
|
|
|
pref("apz.y_skate_size_multiplier", "1.5");
|
|
|
|
pref("apz.x_stationary_size_multiplier", "1.5");
|
|
|
|
pref("apz.y_stationary_size_multiplier", "1.8");
|
|
|
|
pref("apz.enlarge_displayport_when_clipped", true);
|
2014-03-27 19:06:14 +00:00
|
|
|
// Use "sticky" axis locking
|
2014-09-06 00:07:52 +00:00
|
|
|
pref("apz.axis_lock.mode", 2);
|
2014-04-02 16:40:00 +00:00
|
|
|
pref("apz.subframe.enabled", true);
|
2014-03-07 09:27:18 +00:00
|
|
|
|
2014-05-21 23:47:58 +00:00
|
|
|
// Overscroll-related settings
|
2014-06-06 15:42:22 +00:00
|
|
|
pref("apz.overscroll.enabled", true);
|
2014-09-08 20:29:28 +00:00
|
|
|
pref("apz.overscroll.fling_friction", "0.05");
|
2014-06-05 19:16:14 +00:00
|
|
|
pref("apz.overscroll.fling_stopped_threshold", "0.4");
|
2014-08-29 19:28:47 +00:00
|
|
|
pref("apz.overscroll.stretch_factor", "0.5");
|
2014-09-08 20:29:28 +00:00
|
|
|
pref("apz.overscroll.snap_back.spring_stiffness", "0.05");
|
2014-06-03 17:59:35 +00:00
|
|
|
pref("apz.overscroll.snap_back.spring_friction", "0.1");
|
2014-09-08 20:29:28 +00:00
|
|
|
pref("apz.overscroll.snap_back.mass", "100");
|
2014-05-21 23:47:58 +00:00
|
|
|
|
2014-01-06 22:13:57 +00:00
|
|
|
// This preference allows FirefoxOS apps (and content, I think) to force
|
|
|
|
// the use of software (instead of hardware accelerated) 2D canvases by
|
|
|
|
// creating a context like this:
|
|
|
|
//
|
|
|
|
// canvas.getContext('2d', { willReadFrequently: true })
|
|
|
|
//
|
|
|
|
// Using a software canvas can save memory when JS calls getImageData()
|
|
|
|
// on the canvas frequently. See bug 884226.
|
|
|
|
pref("gfx.canvas.willReadFrequently.enable", true);
|
2014-01-31 03:29:18 +00:00
|
|
|
|
|
|
|
// Disable autofocus until we can have it not bring up the keyboard.
|
|
|
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=965763
|
|
|
|
pref("browser.autofocus", false);
|
2014-02-12 05:36:23 +00:00
|
|
|
|
|
|
|
// Enable wakelock
|
|
|
|
pref("dom.wakelock.enabled", true);
|
2014-03-17 16:58:16 +00:00
|
|
|
|
2014-07-26 22:23:00 +00:00
|
|
|
// Enable touch caret by default
|
|
|
|
pref("touchcaret.enabled", true);
|
2014-06-03 07:08:54 +00:00
|
|
|
|
2014-09-18 17:31:20 +00:00
|
|
|
// Disable selection caret by default
|
|
|
|
pref("selectioncaret.enabled", false);
|
2014-06-04 20:58:00 +00:00
|
|
|
|
2014-03-17 16:58:16 +00:00
|
|
|
// Enable sync and mozId with Firefox Accounts.
|
|
|
|
pref("services.sync.fxaccounts.enabled", true);
|
|
|
|
pref("identity.fxaccounts.enabled", true);
|
2014-05-16 05:34:43 +00:00
|
|
|
|
2014-07-03 09:56:34 +00:00
|
|
|
// Mobile Identity API.
|
2014-07-16 07:05:52 +00:00
|
|
|
pref("services.mobileid.server.uri", "https://msisdn.services.mozilla.com");
|
2014-06-07 17:30:19 +00:00
|
|
|
|
2014-07-16 23:02:00 +00:00
|
|
|
// Enable mapped array buffer.
|
|
|
|
#ifndef XP_WIN
|
2014-05-16 05:34:43 +00:00
|
|
|
pref("dom.mapped_arraybuffer.enabled", true);
|
2014-07-16 23:02:00 +00:00
|
|
|
#endif
|
2014-04-14 01:21:26 +00:00
|
|
|
|
|
|
|
// UDPSocket API
|
|
|
|
pref("dom.udpsocket.enabled", true);
|