2012-05-21 04:12:37 -07: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/. */
|
2008-04-18 06:41:49 -07:00
|
|
|
|
|
|
|
#filter substitution
|
|
|
|
|
2012-05-18 09:31:27 -07:00
|
|
|
// For browser.xml binding
|
|
|
|
//
|
|
|
|
// cacheRatio* is a ratio that determines the amount of pixels to cache. The
|
|
|
|
// ratio is multiplied by the viewport width or height to get the displayport's
|
|
|
|
// width or height, respectively.
|
|
|
|
//
|
|
|
|
// (divide integer value by 1000 to get the ratio)
|
|
|
|
//
|
|
|
|
// For instance: cachePercentageWidth is 1500
|
|
|
|
// viewport height is 500
|
|
|
|
// => display port height will be 500 * 1.5 = 750
|
|
|
|
//
|
|
|
|
pref("toolkit.browser.cacheRatioWidth", 2000);
|
|
|
|
pref("toolkit.browser.cacheRatioHeight", 3000);
|
|
|
|
|
2011-01-18 14:00:36 -08:00
|
|
|
// How long before a content view (a handle to a remote scrollable object)
|
|
|
|
// expires.
|
|
|
|
pref("toolkit.browser.contentViewExpire", 3000);
|
2010-09-01 16:25:15 -07:00
|
|
|
|
2008-04-18 06:41:49 -07:00
|
|
|
pref("toolkit.defaultChromeURI", "chrome://browser/content/browser.xul");
|
2008-07-11 11:51:28 -07:00
|
|
|
pref("browser.chromeURL", "chrome://browser/content/");
|
2008-04-18 06:41:49 -07:00
|
|
|
|
2012-06-01 05:42:38 -07:00
|
|
|
pref("browser.tabs.remote", false);
|
2010-03-26 08:21:53 -07:00
|
|
|
|
2012-10-19 08:46:55 -07:00
|
|
|
// If a tab has not been active for this long (seconds), then it may be
|
|
|
|
// turned into a zombie tab to preemptively free up memory. -1 disables time-based
|
2012-11-02 08:02:59 -07:00
|
|
|
// expiration (but low-memory conditions may still require the tab to be zombified).
|
|
|
|
pref("browser.tabs.expireTime", 3600);
|
2012-10-19 08:46:55 -07:00
|
|
|
|
2012-05-18 09:31:27 -07:00
|
|
|
// From libpref/src/init/all.js, extended to allow a slightly wider zoom range.
|
|
|
|
pref("zoom.minPercent", 20);
|
|
|
|
pref("zoom.maxPercent", 400);
|
|
|
|
pref("toolkit.zoomManager.zoomValues", ".2,.3,.5,.67,.8,.9,1,1.1,1.2,1.33,1.5,1.7,2,2.4,3,4");
|
|
|
|
|
2011-12-20 21:04:26 -08:00
|
|
|
// Mobile will use faster, less durable mode.
|
|
|
|
pref("toolkit.storage.synchronous", 0);
|
|
|
|
|
2010-11-16 14:50:34 -08:00
|
|
|
// Device pixel to CSS px ratio, in percent. Set to -1 to calculate based on display density.
|
|
|
|
pref("browser.viewport.scaleRatio", -1);
|
2011-08-24 14:01:18 -07:00
|
|
|
pref("browser.viewport.desktopWidth", 980);
|
2010-04-22 17:54:41 -07:00
|
|
|
|
2010-12-15 20:01:00 -08:00
|
|
|
/* allow scrollbars to float above chrome ui */
|
|
|
|
pref("ui.scrollbarsCanOverlapContent", 1);
|
|
|
|
|
2008-04-18 06:41:49 -07:00
|
|
|
/* cache prefs */
|
2011-11-03 09:37:43 -07:00
|
|
|
pref("browser.cache.disk.enable", true);
|
2012-04-14 16:44:02 -07:00
|
|
|
pref("browser.cache.disk.capacity", 20480); // kilobytes
|
2012-05-04 19:46:36 -07:00
|
|
|
pref("browser.cache.disk.max_entry_size", 4096); // kilobytes
|
2012-05-30 19:59:33 -07:00
|
|
|
pref("browser.cache.disk.smart_size.enabled", true);
|
|
|
|
pref("browser.cache.disk.smart_size.first_run", true);
|
2010-01-05 13:57:26 -08:00
|
|
|
|
2012-09-25 10:04:36 -07:00
|
|
|
#ifdef MOZ_PKG_SPECIAL
|
|
|
|
// low memory devices
|
|
|
|
pref("browser.cache.memory.enable", false);
|
|
|
|
#else
|
2008-04-18 06:41:49 -07:00
|
|
|
pref("browser.cache.memory.enable", true);
|
2012-09-25 10:04:36 -07:00
|
|
|
#endif
|
2009-07-01 11:32:06 -07:00
|
|
|
pref("browser.cache.memory.capacity", 1024); // kilobytes
|
|
|
|
|
|
|
|
/* image cache prefs */
|
2009-07-01 12:12:58 -07:00
|
|
|
pref("image.cache.size", 1048576); // bytes
|
2012-09-27 11:12:56 -07:00
|
|
|
pref("image.high_quality_downscaling.enabled", false);
|
2009-07-01 11:32:06 -07:00
|
|
|
|
|
|
|
/* offline cache prefs */
|
2009-10-14 13:36:47 -07:00
|
|
|
pref("browser.offline-apps.notify", true);
|
2009-07-01 11:32:06 -07:00
|
|
|
pref("browser.cache.offline.enable", true);
|
|
|
|
pref("browser.cache.offline.capacity", 5120); // kilobytes
|
|
|
|
pref("offline-apps.quota.warn", 1024); // kilobytes
|
2008-04-18 06:41:49 -07:00
|
|
|
|
2012-01-17 03:51:17 -08:00
|
|
|
// cache compression turned off for now - see bug #715198
|
|
|
|
pref("browser.cache.compression_level", 0);
|
|
|
|
|
2010-08-24 22:10:52 -07:00
|
|
|
/* protocol warning prefs */
|
|
|
|
pref("network.protocol-handler.warn-external.tel", false);
|
|
|
|
pref("network.protocol-handler.warn-external.mailto", false);
|
2011-02-09 11:50:23 -08:00
|
|
|
pref("network.protocol-handler.warn-external.vnd.youtube", false);
|
2010-08-24 22:10:52 -07:00
|
|
|
|
2008-04-18 06:41:49 -07:00
|
|
|
/* http prefs */
|
|
|
|
pref("network.http.pipelining", true);
|
|
|
|
pref("network.http.pipelining.ssl", true);
|
|
|
|
pref("network.http.proxy.pipelining", true);
|
2008-08-01 14:20:56 -07:00
|
|
|
pref("network.http.pipelining.maxrequests" , 6);
|
2008-04-18 06:41:49 -07:00
|
|
|
pref("network.http.keep-alive.timeout", 600);
|
2012-06-10 16:44:50 -07:00
|
|
|
pref("network.http.max-connections", 20);
|
|
|
|
pref("network.http.max-persistent-connections-per-server", 6);
|
2012-09-05 05:27:31 -07:00
|
|
|
pref("network.http.max-persistent-connections-per-proxy", 20);
|
2008-04-18 06:41:49 -07:00
|
|
|
|
2011-01-06 10:28:16 -08: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);
|
|
|
|
|
2010-08-24 01:42:28 -07:00
|
|
|
/* history max results display */
|
|
|
|
pref("browser.display.history.maxresults", 100);
|
|
|
|
|
2011-03-25 10:41:44 -07:00
|
|
|
/* How many times should have passed before the remote tabs list is refreshed */
|
|
|
|
pref("browser.display.remotetabs.timeout", 10);
|
|
|
|
|
2008-04-18 06:41:49 -07:00
|
|
|
/* session history */
|
2009-06-01 08:47:55 -07:00
|
|
|
pref("browser.sessionhistory.max_total_viewers", 1);
|
2008-05-09 15:56:14 -07:00
|
|
|
pref("browser.sessionhistory.max_entries", 50);
|
2008-04-18 06:41:49 -07:00
|
|
|
|
2010-12-15 17:47:38 -08:00
|
|
|
/* session store */
|
2010-12-30 18:43:08 -08:00
|
|
|
pref("browser.sessionstore.resume_session_once", false);
|
2012-10-29 16:34:29 -07:00
|
|
|
pref("browser.sessionstore.resume_from_crash", true);
|
2010-12-15 17:47:38 -08:00
|
|
|
pref("browser.sessionstore.interval", 10000); // milliseconds
|
2011-06-29 16:20:22 -07:00
|
|
|
pref("browser.sessionstore.max_tabs_undo", 1);
|
2012-01-27 22:04:54 -08:00
|
|
|
pref("browser.sessionstore.max_resumed_crashes", 1);
|
|
|
|
pref("browser.sessionstore.recent_crashes", 0);
|
2010-12-15 17:47:38 -08:00
|
|
|
|
2008-09-18 11:15:23 -07:00
|
|
|
/* these should help performance */
|
|
|
|
pref("mozilla.widget.force-24bpp", true);
|
|
|
|
pref("mozilla.widget.use-buffer-pixmap", true);
|
|
|
|
pref("mozilla.widget.disable-native-theme", true);
|
2011-05-22 09:55:55 -07:00
|
|
|
pref("layout.reflow.synthMouseMove", false);
|
2008-09-18 11:15:23 -07:00
|
|
|
|
2008-05-02 13:15:45 -07:00
|
|
|
/* download manager (don't show the window or alert) */
|
2008-04-18 06:41:49 -07:00
|
|
|
pref("browser.download.useDownloadDir", true);
|
2008-08-28 14:45:58 -07:00
|
|
|
pref("browser.download.folderList", 1); // Default to ~/Downloads
|
2008-05-02 13:15:45 -07:00
|
|
|
pref("browser.download.manager.showAlertOnComplete", false);
|
2008-04-18 06:41:49 -07:00
|
|
|
pref("browser.download.manager.showAlertInterval", 2000);
|
|
|
|
pref("browser.download.manager.retention", 2);
|
2008-12-03 14:32:51 -08:00
|
|
|
pref("browser.download.manager.showWhenStarting", false);
|
2008-04-18 06:41:49 -07:00
|
|
|
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);
|
|
|
|
|
2011-08-16 10:12:03 -07:00
|
|
|
/* download helper */
|
|
|
|
pref("browser.helperApps.deleteTempFileOnExit", false);
|
|
|
|
|
2008-04-18 06:41:49 -07:00
|
|
|
/* password manager */
|
|
|
|
pref("signon.rememberSignons", true);
|
|
|
|
pref("signon.expireMasterPassword", false);
|
|
|
|
pref("signon.SignonFileName", "signons.txt");
|
2011-10-26 21:29:46 -07:00
|
|
|
pref("signon.debug", false);
|
2008-04-18 06:41:49 -07:00
|
|
|
|
2010-03-30 10:56:06 -07:00
|
|
|
/* form helper */
|
2011-05-17 02:55:05 -07:00
|
|
|
// 0 = disabled, 1 = enabled, 2 = dynamic depending on screen size
|
|
|
|
pref("formhelper.mode", 2);
|
2010-03-30 10:56:06 -07:00
|
|
|
pref("formhelper.autozoom", true);
|
2011-01-14 08:39:16 -08:00
|
|
|
pref("formhelper.autozoom.caret", true);
|
2010-03-30 10:56:06 -07:00
|
|
|
pref("formhelper.restore", false);
|
|
|
|
|
2010-07-19 07:51:03 -07:00
|
|
|
/* find helper */
|
|
|
|
pref("findhelper.autozoom", true);
|
|
|
|
|
2008-04-18 06:41:49 -07:00
|
|
|
/* autocomplete */
|
|
|
|
pref("browser.formfill.enable", true);
|
|
|
|
|
|
|
|
/* spellcheck */
|
2011-01-27 12:30:48 -08:00
|
|
|
pref("layout.spellcheckDefault", 0);
|
2008-04-18 06:41:49 -07:00
|
|
|
|
2012-07-09 07:53:09 -07:00
|
|
|
/* new html5 forms */
|
|
|
|
pref("dom.experimental_forms", true);
|
|
|
|
|
2008-04-18 06:41:49 -07:00
|
|
|
/* extension manager and xpinstall */
|
2009-07-05 09:20:34 -07:00
|
|
|
pref("xpinstall.whitelist.add", "addons.mozilla.org");
|
2010-03-16 20:42:01 -07:00
|
|
|
|
2011-11-16 07:18:34 -08:00
|
|
|
pref("extensions.enabledScopes", 1);
|
2010-03-16 20:42:01 -07:00
|
|
|
pref("extensions.autoupdate.enabled", true);
|
|
|
|
pref("extensions.autoupdate.interval", 86400);
|
2009-11-13 13:32:29 -08:00
|
|
|
pref("extensions.update.enabled", false);
|
2008-04-18 06:41:49 -07:00
|
|
|
pref("extensions.update.interval", 86400);
|
|
|
|
pref("extensions.dss.enabled", false);
|
|
|
|
pref("extensions.dss.switchPending", false);
|
|
|
|
pref("extensions.ignoreMTimeChanges", false);
|
|
|
|
pref("extensions.logging.enabled", false);
|
2008-08-19 19:18:36 -07:00
|
|
|
pref("extensions.hideInstallButton", true);
|
2009-09-15 11:04:19 -07:00
|
|
|
pref("extensions.showMismatchUI", false);
|
2010-04-30 12:07:27 -07:00
|
|
|
pref("extensions.hideUpdateButton", false);
|
2012-01-30 16:53:14 -08:00
|
|
|
pref("extensions.strictCompatibility", false);
|
|
|
|
pref("extensions.minCompatibleAppVersion", "11.0");
|
2008-04-18 06:41:49 -07:00
|
|
|
|
2012-01-30 16:53:14 -08:00
|
|
|
pref("extensions.update.url", "https://versioncheck.addons.mozilla.org/update/VersionCheck.php?reqVersion=%REQ_VERSION%&id=%ITEM_ID%&version=%ITEM_VERSION%&maxAppVersion=%ITEM_MAXAPPVERSION%&status=%ITEM_STATUS%&appID=%APP_ID%&appVersion=%APP_VERSION%&appOS=%APP_OS%&appABI=%APP_ABI%&locale=%APP_LOCALE%¤tAppVersion=%CURRENT_APP_VERSION%&updateType=%UPDATE_TYPE%&compatMode=%COMPATIBILITY_MODE%");
|
2012-03-07 00:18:28 -08:00
|
|
|
pref("extensions.update.background.url", "https://versioncheck-bg.addons.mozilla.org/update/VersionCheck.php?reqVersion=%REQ_VERSION%&id=%ITEM_ID%&version=%ITEM_VERSION%&maxAppVersion=%ITEM_MAXAPPVERSION%&status=%ITEM_STATUS%&appID=%APP_ID%&appVersion=%APP_VERSION%&appOS=%APP_OS%&appABI=%APP_ABI%&locale=%APP_LOCALE%¤tAppVersion=%CURRENT_APP_VERSION%&updateType=%UPDATE_TYPE%&compatMode=%COMPATIBILITY_MODE%");
|
2008-05-22 16:58:27 -07:00
|
|
|
|
2008-08-19 19:18:36 -07:00
|
|
|
/* preferences for the Get Add-ons pane */
|
2011-01-21 08:50:06 -08:00
|
|
|
pref("extensions.getAddons.cache.enabled", true);
|
2010-09-15 03:40:12 -07:00
|
|
|
pref("extensions.getAddons.maxResults", 15);
|
2012-02-02 13:04:27 -08:00
|
|
|
pref("extensions.getAddons.recommended.browseURL", "https://addons.mozilla.org/%LOCALE%/android/recommended/");
|
|
|
|
pref("extensions.getAddons.recommended.url", "https://services.addons.mozilla.org/%LOCALE%/android/api/%API_VERSION%/list/featured/all/%MAX_RESULTS%/%OS%/%VERSION%");
|
2012-03-07 00:18:30 -08:00
|
|
|
pref("extensions.getAddons.search.browseURL", "https://addons.mozilla.org/%LOCALE%/android/search?q=%TERMS%&platform=%OS%&appver=%VERSION%");
|
2012-02-02 13:04:27 -08:00
|
|
|
pref("extensions.getAddons.search.url", "https://services.addons.mozilla.org/%LOCALE%/android/api/%API_VERSION%/search/%TERMS%/all/%MAX_RESULTS%/%OS%/%VERSION%/%COMPATIBILITY_MODE%");
|
|
|
|
pref("extensions.getAddons.browseAddons", "https://addons.mozilla.org/%LOCALE%/android/");
|
|
|
|
pref("extensions.getAddons.get.url", "https://services.addons.mozilla.org/%LOCALE%/android/api/%API_VERSION%/search/guid:%IDS%?src=mobile&appOS=%OS%&appVersion=%VERSION%");
|
|
|
|
pref("extensions.getAddons.getWithPerformance.url", "https://services.addons.mozilla.org/%LOCALE%/android/api/%API_VERSION%/search/guid:%IDS%?src=mobile&appOS=%OS%&appVersion=%VERSION%&tMain=%TIME_MAIN%&tFirstPaint=%TIME_FIRST_PAINT%&tSessionRestored=%TIME_SESSION_RESTORED%");
|
2008-08-19 19:18:36 -07:00
|
|
|
|
2011-06-07 12:11:37 -07:00
|
|
|
/* preference for the locale picker */
|
|
|
|
pref("extensions.getLocales.get.url", "");
|
2011-09-02 09:37:54 -07:00
|
|
|
pref("extensions.compatability.locales.buildid", "0");
|
2011-06-07 12:11:37 -07:00
|
|
|
|
2008-08-19 19:18:36 -07:00
|
|
|
/* blocklist preferences */
|
|
|
|
pref("extensions.blocklist.enabled", true);
|
|
|
|
pref("extensions.blocklist.interval", 86400);
|
2011-02-02 06:44:18 -08:00
|
|
|
pref("extensions.blocklist.url", "https://addons.mozilla.org/blocklist/3/%APP_ID%/%APP_VERSION%/%PRODUCT%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/%PING_COUNT%/%TOTAL_PING_COUNT%/%DAYS_SINCE_LAST_PING%/");
|
2010-01-08 16:40:19 -08:00
|
|
|
pref("extensions.blocklist.detailsURL", "https://www.mozilla.com/%LOCALE%/blocklist/");
|
2008-08-19 19:18:36 -07:00
|
|
|
|
2008-07-11 11:51:28 -07:00
|
|
|
/* block popups by default, and notify the user about blocked popups */
|
|
|
|
pref("dom.disable_open_during_load", true);
|
|
|
|
pref("privacy.popups.showBrowserMessage", true);
|
|
|
|
|
2012-03-08 15:29:30 -08:00
|
|
|
/* disable opening windows with the dialog feature */
|
|
|
|
pref("dom.disable_window_open_dialog_feature", true);
|
2012-04-12 21:55:25 -07:00
|
|
|
pref("dom.disable_window_showModalDialog", true);
|
2012-04-13 12:45:06 -07:00
|
|
|
pref("dom.disable_window_print", true);
|
2012-05-03 09:15:38 -07:00
|
|
|
pref("dom.disable_window_find", true);
|
2012-03-08 15:29:30 -08:00
|
|
|
|
2008-07-15 08:21:39 -07:00
|
|
|
pref("keyword.enabled", true);
|
2012-05-14 14:49:41 -07:00
|
|
|
pref("keyword.URL", "");
|
2008-07-15 08:21:39 -07:00
|
|
|
|
2008-07-16 08:41:38 -07:00
|
|
|
pref("accessibility.typeaheadfind", false);
|
|
|
|
pref("accessibility.typeaheadfind.timeout", 5000);
|
|
|
|
pref("accessibility.typeaheadfind.flashBar", 1);
|
|
|
|
pref("accessibility.typeaheadfind.linksonly", false);
|
2008-08-04 13:53:40 -07:00
|
|
|
pref("accessibility.typeaheadfind.casesensitive", 0);
|
2009-02-18 10:04:46 -08:00
|
|
|
// zoom key(F7) conflicts with caret browsing on maemo
|
|
|
|
pref("accessibility.browsewithcaret_shortcut.enabled", false);
|
2008-07-16 08:41:38 -07:00
|
|
|
|
2011-02-18 11:48:50 -08:00
|
|
|
// Whether the character encoding menu is under the main Firefox button. This
|
|
|
|
// preference is a string so that localizers can alter it.
|
|
|
|
pref("browser.menu.showCharacterEncoding", "chrome://browser/locale/browser.properties");
|
|
|
|
pref("intl.charsetmenu.browser.static", "chrome://browser/locale/browser.properties");
|
|
|
|
|
2008-07-16 08:41:38 -07:00
|
|
|
// pointer to the default engine name
|
2010-01-08 16:40:19 -08:00
|
|
|
pref("browser.search.defaultenginename", "chrome://browser/locale/region.properties");
|
2008-09-09 08:52:21 -07:00
|
|
|
// SSL error page behaviour
|
|
|
|
pref("browser.ssl_override_behavior", 2);
|
|
|
|
pref("browser.xul.error_pages.expert_bad_cert", false);
|
2008-07-16 08:41:38 -07:00
|
|
|
|
|
|
|
// disable logging for the search service by default
|
|
|
|
pref("browser.search.log", false);
|
|
|
|
|
2009-06-09 10:55:14 -07:00
|
|
|
// ordering of search engines in the engine list.
|
|
|
|
pref("browser.search.order.1", "chrome://browser/locale/region.properties");
|
|
|
|
pref("browser.search.order.2", "chrome://browser/locale/region.properties");
|
2008-07-16 08:41:38 -07:00
|
|
|
|
|
|
|
// disable updating
|
|
|
|
pref("browser.search.update", false);
|
|
|
|
pref("browser.search.update.log", false);
|
|
|
|
pref("browser.search.updateinterval", 6);
|
|
|
|
|
2012-08-20 11:41:54 -07:00
|
|
|
// disable search suggestions by default
|
|
|
|
pref("browser.search.suggest.enabled", false);
|
2012-10-02 10:51:48 -07:00
|
|
|
pref("browser.search.suggest.prompted", false);
|
2008-07-22 13:33:22 -07:00
|
|
|
|
2009-11-25 09:54:06 -08:00
|
|
|
// Tell the search service to load search plugins from the locale JAR
|
|
|
|
pref("browser.search.loadFromJars", true);
|
|
|
|
pref("browser.search.jarURIs", "chrome://browser/locale/searchplugins/");
|
|
|
|
|
|
|
|
// tell the search service that we don't really expose the "current engine"
|
|
|
|
pref("browser.search.noCurrentEngine", true);
|
|
|
|
|
2008-07-22 13:33:22 -07:00
|
|
|
// enable xul error pages
|
|
|
|
pref("browser.xul.error_pages.enabled", true);
|
|
|
|
|
2009-09-21 03:02:43 -07:00
|
|
|
// Specify emptyRestriction = 0 so that bookmarks appear in the list by default
|
2009-09-14 15:53:41 -07:00
|
|
|
pref("browser.urlbar.default.behavior", 0);
|
|
|
|
pref("browser.urlbar.default.behavior.emptyRestriction", 0);
|
|
|
|
|
2009-10-21 12:36:44 -07:00
|
|
|
// Let the faviconservice know that we display favicons as 32x32px so that it
|
|
|
|
// uses the right size when optimizing favicons
|
|
|
|
pref("places.favicons.optimizeToDimension", 32);
|
|
|
|
|
2009-06-09 10:55:14 -07:00
|
|
|
// various and sundry awesomebar prefs (should remove/re-evaluate
|
2008-07-25 10:30:17 -07:00
|
|
|
// these once bug 447900 is fixed)
|
|
|
|
pref("browser.urlbar.clickSelectsAll", true);
|
2009-07-21 17:05:01 -07:00
|
|
|
pref("browser.urlbar.doubleClickSelectsAll", true);
|
2008-07-25 10:30:17 -07:00
|
|
|
pref("browser.urlbar.autoFill", false);
|
|
|
|
pref("browser.urlbar.matchOnlyTyped", false);
|
|
|
|
pref("browser.urlbar.matchBehavior", 1);
|
|
|
|
pref("browser.urlbar.filter.javascript", true);
|
2010-04-12 20:38:42 -07:00
|
|
|
pref("browser.urlbar.maxRichResults", 24); // increased so we see more results when portrait
|
2008-07-25 10:30:17 -07:00
|
|
|
pref("browser.urlbar.search.chunkSize", 1000);
|
|
|
|
pref("browser.urlbar.search.timeout", 100);
|
|
|
|
pref("browser.urlbar.restrict.history", "^");
|
|
|
|
pref("browser.urlbar.restrict.bookmark", "*");
|
|
|
|
pref("browser.urlbar.restrict.tag", "+");
|
|
|
|
pref("browser.urlbar.match.title", "#");
|
|
|
|
pref("browser.urlbar.match.url", "@");
|
2010-11-03 08:41:00 -07:00
|
|
|
pref("browser.urlbar.autocomplete.search_threshold", 5);
|
2008-07-25 10:30:17 -07:00
|
|
|
pref("browser.history.grouping", "day");
|
|
|
|
pref("browser.history.showSessions", false);
|
|
|
|
pref("browser.sessionhistory.max_entries", 50);
|
|
|
|
pref("browser.history_expire_days", 180);
|
|
|
|
pref("browser.history_expire_days_min", 90);
|
|
|
|
pref("browser.history_expire_sites", 40000);
|
|
|
|
pref("browser.places.migratePostDataAnnotations", true);
|
|
|
|
pref("browser.places.updateRecentTagsUri", true);
|
|
|
|
pref("places.frecency.numVisits", 10);
|
|
|
|
pref("places.frecency.numCalcOnIdle", 50);
|
|
|
|
pref("places.frecency.numCalcOnMigrate", 50);
|
|
|
|
pref("places.frecency.updateIdleTime", 60000);
|
|
|
|
pref("places.frecency.firstBucketCutoff", 4);
|
|
|
|
pref("places.frecency.secondBucketCutoff", 14);
|
|
|
|
pref("places.frecency.thirdBucketCutoff", 31);
|
|
|
|
pref("places.frecency.fourthBucketCutoff", 90);
|
|
|
|
pref("places.frecency.firstBucketWeight", 100);
|
|
|
|
pref("places.frecency.secondBucketWeight", 70);
|
|
|
|
pref("places.frecency.thirdBucketWeight", 50);
|
|
|
|
pref("places.frecency.fourthBucketWeight", 30);
|
|
|
|
pref("places.frecency.defaultBucketWeight", 10);
|
|
|
|
pref("places.frecency.embedVisitBonus", 0);
|
|
|
|
pref("places.frecency.linkVisitBonus", 100);
|
|
|
|
pref("places.frecency.typedVisitBonus", 2000);
|
|
|
|
pref("places.frecency.bookmarkVisitBonus", 150);
|
|
|
|
pref("places.frecency.downloadVisitBonus", 0);
|
|
|
|
pref("places.frecency.permRedirectVisitBonus", 0);
|
|
|
|
pref("places.frecency.tempRedirectVisitBonus", 0);
|
|
|
|
pref("places.frecency.defaultVisitBonus", 0);
|
|
|
|
pref("places.frecency.unvisitedBookmarkBonus", 140);
|
|
|
|
pref("places.frecency.unvisitedTypedBonus", 200);
|
2008-09-17 15:15:25 -07:00
|
|
|
|
|
|
|
// disable color management
|
|
|
|
pref("gfx.color_management.mode", 0);
|
2012-04-13 07:28:10 -07:00
|
|
|
|
2012-04-25 06:53:38 -07:00
|
|
|
// 0=fixed margin, 1=velocity bias, 2=dynamic resolution, 3=no margins, 4=prediction bias
|
2012-04-10 11:56:28 -07:00
|
|
|
pref("gfx.displayport.strategy", 1);
|
2012-10-13 08:18:20 -07:00
|
|
|
|
2012-04-13 07:28:10 -07:00
|
|
|
// all of the following displayport strategy prefs will be divided by 1000
|
|
|
|
// to obtain some multiplier which is then used in the strategy.
|
|
|
|
// fixed margin strategy options
|
|
|
|
pref("gfx.displayport.strategy_fm.multiplier", -1); // displayport dimension multiplier
|
|
|
|
pref("gfx.displayport.strategy_fm.danger_x", -1); // danger zone on x-axis when multiplied by viewport width
|
|
|
|
pref("gfx.displayport.strategy_fm.danger_y", -1); // danger zone on y-axis when multiplied by viewport height
|
2012-10-13 08:18:20 -07:00
|
|
|
|
2012-04-13 07:28:10 -07:00
|
|
|
// velocity bias strategy options
|
|
|
|
pref("gfx.displayport.strategy_vb.multiplier", -1); // displayport dimension multiplier
|
2012-04-25 06:53:38 -07:00
|
|
|
pref("gfx.displayport.strategy_vb.threshold", -1); // velocity threshold in inches/frame
|
2012-04-13 07:28:10 -07:00
|
|
|
pref("gfx.displayport.strategy_vb.reverse_buffer", -1); // fraction of buffer to keep in reverse direction from scroll
|
2012-04-14 06:50:04 -07:00
|
|
|
pref("gfx.displayport.strategy_vb.danger_x_base", -1); // danger zone on x-axis when multiplied by viewport width
|
|
|
|
pref("gfx.displayport.strategy_vb.danger_y_base", -1); // danger zone on y-axis when multiplied by viewport height
|
|
|
|
pref("gfx.displayport.strategy_vb.danger_x_incr", -1); // additional danger zone on x-axis when multiplied by viewport width and velocity
|
|
|
|
pref("gfx.displayport.strategy_vb.danger_y_incr", -1); // additional danger zone on y-axis when multiplied by viewport height and velocity
|
2012-10-13 08:18:20 -07:00
|
|
|
|
2012-04-25 06:53:38 -07:00
|
|
|
// prediction bias strategy options
|
|
|
|
pref("gfx.displayport.strategy_pb.threshold", -1); // velocity threshold in inches/frame
|
2008-09-19 22:56:06 -07:00
|
|
|
|
2012-10-25 14:11:02 -07:00
|
|
|
pref("gfx.java.screenshot.enabled", false);
|
2012-10-13 08:18:20 -07:00
|
|
|
|
2008-09-19 22:56:06 -07:00
|
|
|
// don't allow JS to move and resize existing windows
|
|
|
|
pref("dom.disable_window_move_resize", true);
|
2008-09-22 10:37:07 -07:00
|
|
|
|
2009-07-28 21:09:10 -07:00
|
|
|
// prevent click image resizing for nsImageDocument
|
|
|
|
pref("browser.enable_click_image_resizing", false);
|
|
|
|
|
2008-09-24 09:14:06 -07:00
|
|
|
// open in tab preferences
|
|
|
|
// 0=default window, 1=current window/tab, 2=new window, 3=new tab in most window
|
|
|
|
pref("browser.link.open_external", 3);
|
|
|
|
pref("browser.link.open_newwindow", 3);
|
2008-10-21 11:28:08 -07:00
|
|
|
// 0=force all new windows to tabs, 1=don't force, 2=only force those with no features set
|
|
|
|
pref("browser.link.open_newwindow.restriction", 0);
|
2008-09-24 14:11:01 -07:00
|
|
|
|
2008-09-06 23:54:06 -07:00
|
|
|
// 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);
|
2009-05-29 18:28:12 -07:00
|
|
|
pref("privacy.item.geolocation", true);
|
|
|
|
pref("privacy.item.siteSettings", true);
|
2011-02-24 17:02:24 -08:00
|
|
|
pref("privacy.item.syncAccount", true);
|
2009-05-29 18:28:12 -07:00
|
|
|
|
2010-01-08 16:40:19 -08:00
|
|
|
// URL to the Learn More link XXX this is the firefox one. Bug 495578 fixes this.
|
|
|
|
pref("browser.geolocation.warning.infoURL", "http://www.mozilla.com/%LOCALE%/firefox/geolocation/");
|
2009-05-29 18:28:12 -07:00
|
|
|
|
|
|
|
// enable geo
|
|
|
|
pref("geo.enabled", true);
|
|
|
|
|
2009-03-05 12:18:42 -08:00
|
|
|
// content sink control -- controls responsiveness during page load
|
2009-12-18 12:19:57 -08:00
|
|
|
// see https://bugzilla.mozilla.org/show_bug.cgi?id=481566#c9
|
2011-11-29 15:27:39 -08:00
|
|
|
//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);
|
2009-03-05 12:18:42 -08:00
|
|
|
|
2011-08-26 10:46:06 -07:00
|
|
|
// Disable methodjit in chrome to save memory
|
|
|
|
pref("javascript.options.methodjit.chrome", false);
|
|
|
|
|
2011-07-07 11:27:07 -07:00
|
|
|
// Disable the JS engine's gc on memory pressure, since we do one in the mobile
|
|
|
|
// browser (bug 669346).
|
|
|
|
pref("javascript.options.gc_on_memory_pressure", false);
|
|
|
|
|
2012-08-19 21:15:12 -07:00
|
|
|
#ifdef MOZ_PKG_SPECIAL
|
|
|
|
// low memory devices
|
|
|
|
pref("javascript.options.mem.gc_high_frequency_heap_growth_max", 120);
|
|
|
|
pref("javascript.options.mem.gc_high_frequency_heap_growth_min", 101);
|
|
|
|
pref("javascript.options.mem.gc_high_frequency_high_limit_mb", 40);
|
|
|
|
pref("javascript.options.mem.gc_high_frequency_low_limit_mb", 10);
|
|
|
|
pref("javascript.options.mem.gc_low_frequency_heap_growth", 105);
|
|
|
|
pref("javascript.options.mem.high_water_mark", 16);
|
2012-10-26 16:06:19 -07:00
|
|
|
pref("javascript.options.mem.gc_allocation_threshold_mb", 3);
|
2012-08-19 21:15:12 -07:00
|
|
|
#else
|
|
|
|
pref("javascript.options.mem.high_water_mark", 32);
|
|
|
|
#endif
|
|
|
|
|
2010-10-07 17:46:49 -07:00
|
|
|
pref("dom.max_chrome_script_run_time", 0); // disable slow script dialog for chrome
|
2009-03-26 08:36:02 -07:00
|
|
|
pref("dom.max_script_run_time", 20);
|
2009-05-29 18:28:12 -07:00
|
|
|
|
2009-06-09 10:55:14 -07:00
|
|
|
// JS error console
|
2011-01-03 17:06:27 -08:00
|
|
|
pref("devtools.errorconsole.enabled", false);
|
2009-07-10 12:43:14 -07:00
|
|
|
|
2011-11-27 11:42:19 -08:00
|
|
|
pref("font.size.inflation.minTwips", 120);
|
2011-11-24 15:40:14 -08:00
|
|
|
|
2012-05-18 08:24:27 -07:00
|
|
|
// When true, zooming will be enabled on all sites, even ones that declare user-scalable=no.
|
|
|
|
pref("browser.ui.zoom.force-user-scalable", false);
|
2010-04-08 12:57:05 -07:00
|
|
|
|
2012-10-18 16:33:17 -07:00
|
|
|
// Touch radius (area around the touch location to look for target elements),
|
|
|
|
// in 1/240-inch pixels:
|
|
|
|
pref("browser.ui.touch.left", 32);
|
|
|
|
pref("browser.ui.touch.right", 32);
|
|
|
|
pref("browser.ui.touch.top", 48);
|
|
|
|
pref("browser.ui.touch.bottom", 16);
|
|
|
|
pref("browser.ui.touch.weight.visited", 120); // percentage
|
2010-04-08 11:50:05 -07:00
|
|
|
|
2010-01-26 15:34:11 -08:00
|
|
|
// plugins
|
2011-11-15 07:43:42 -08:00
|
|
|
pref("plugin.disable", false);
|
2011-10-07 10:46:02 -07:00
|
|
|
pref("dom.ipc.plugins.enabled", false);
|
2009-09-03 11:04:50 -07:00
|
|
|
|
2011-12-09 14:04:19 -08:00
|
|
|
pref("plugins.click_to_play", true);
|
2012-06-10 16:44:50 -07:00
|
|
|
// Disabled because of thread safety problem
|
|
|
|
// in getting the bits from the surface.
|
|
|
|
// Bug 756253
|
|
|
|
pref("plugins.use_placeholder", 0);
|
2011-12-09 14:04:19 -08:00
|
|
|
|
2009-09-03 11:04:50 -07:00
|
|
|
// product URLs
|
2010-04-09 08:17:14 -07:00
|
|
|
// The breakpad report server to link to in about:crashes
|
|
|
|
pref("breakpad.reportURL", "http://crash-stats.mozilla.com/report/index/");
|
2012-03-12 12:08:15 -07:00
|
|
|
pref("app.support.baseURL", "http://support.mozilla.org/1/mobile/%VERSION%/%OS%/%LOCALE%/");
|
2012-08-26 21:33:11 -07:00
|
|
|
// Used to submit data to input from about:feedback
|
|
|
|
pref("app.feedback.postURL", "http://m.input.mozilla.org/%LOCALE%/feedback");
|
2011-03-04 10:30:15 -08:00
|
|
|
pref("app.privacyURL", "http://www.mozilla.com/%LOCALE%/m/privacy.html");
|
2011-01-26 09:08:00 -08:00
|
|
|
pref("app.creditsURL", "http://www.mozilla.org/credits/");
|
2011-09-06 08:47:00 -07:00
|
|
|
pref("app.channelURL", "http://www.mozilla.org/%LOCALE%/firefox/channel/");
|
2012-02-24 11:40:20 -08:00
|
|
|
#if MOZ_UPDATE_CHANNEL == aurora
|
|
|
|
pref("app.releaseNotesURL", "http://www.mozilla.com/%LOCALE%/mobile/%VERSION%/auroranotes/");
|
|
|
|
#else
|
|
|
|
pref("app.releaseNotesURL", "http://www.mozilla.com/%LOCALE%/mobile/%VERSION%/releasenotes/");
|
|
|
|
#endif
|
2010-09-23 13:29:53 -07:00
|
|
|
#if MOZ_UPDATE_CHANNEL == beta
|
|
|
|
pref("app.faqURL", "http://www.mozilla.com/%LOCALE%/mobile/beta/faq/");
|
|
|
|
#else
|
|
|
|
pref("app.faqURL", "http://www.mozilla.com/%LOCALE%/mobile/faq/");
|
|
|
|
#endif
|
2012-03-29 21:50:48 -07:00
|
|
|
pref("app.marketplaceURL", "https://marketplace.mozilla.org/");
|
2011-02-18 08:10:43 -08:00
|
|
|
|
2009-09-09 20:21:26 -07:00
|
|
|
// Name of alternate about: page for certificate errors (when undefined, defaults to about:neterror)
|
|
|
|
pref("security.alternate_certificate_error_page", "certerror");
|
2009-09-22 07:21:15 -07:00
|
|
|
|
2010-12-08 13:57:19 -08:00
|
|
|
pref("security.warn_viewing_mixed", false); // Warning is disabled. See Bug 616712.
|
2010-12-08 13:49:01 -08:00
|
|
|
|
2009-10-25 22:58:13 -07: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.highlight", "#fad184");
|
|
|
|
pref("ui.highlighttext", "#1a1a1a");
|
|
|
|
pref("ui.infobackground", "#f5f5b5");
|
|
|
|
pref("ui.infotext", "#000");
|
|
|
|
pref("ui.menu", "#f7f5f3");
|
|
|
|
pref("ui.menutext", "#101010");
|
|
|
|
pref("ui.threeddarkshadow", "#000");
|
|
|
|
pref("ui.threedface", "#ece7e2");
|
|
|
|
pref("ui.threedhighlight", "#fff");
|
|
|
|
pref("ui.threedlightshadow", "#ece7e2");
|
|
|
|
pref("ui.threedshadow", "#aea194");
|
|
|
|
pref("ui.window", "#efebe7");
|
|
|
|
pref("ui.windowtext", "#101010");
|
|
|
|
pref("ui.windowframe", "#efebe7");
|
|
|
|
|
2009-12-01 12:58:29 -08:00
|
|
|
#ifdef MOZ_OFFICIAL_BRANDING
|
|
|
|
pref("browser.search.param.yahoo-fr", "moz35");
|
|
|
|
pref("browser.search.param.yahoo-fr-cjkt", "moz35");
|
2009-12-23 17:49:39 -08:00
|
|
|
pref("browser.search.param.yahoo-fr-ja", "mozff");
|
2009-12-01 12:58:29 -08:00
|
|
|
#endif
|
2010-01-21 09:48:08 -08:00
|
|
|
|
2012-08-19 21:15:10 -07:00
|
|
|
/* prefs used by the update timer system (including blocklist pings) */
|
|
|
|
pref("app.update.timerFirstInterval", 30000); // milliseconds
|
|
|
|
pref("app.update.timerMinimumDelay", 30); // seconds
|
2010-03-16 20:42:01 -07:00
|
|
|
|
2012-10-15 06:56:42 -07:00
|
|
|
// used by update service to decide whether or not to
|
|
|
|
// automatically download an update
|
|
|
|
pref("app.update.autodownload", "wifi");
|
|
|
|
|
2010-01-21 09:48:08 -08:00
|
|
|
#ifdef MOZ_UPDATER
|
2012-08-19 21:15:10 -07:00
|
|
|
/* prefs used specifically for updating the app */
|
2012-08-31 06:31:29 -07:00
|
|
|
pref("app.update.enabled", false);
|
2010-01-21 09:48:08 -08:00
|
|
|
pref("app.update.channel", "@MOZ_UPDATE_CHANNEL@");
|
|
|
|
|
2012-08-31 06:31:29 -07:00
|
|
|
// If you are looking for app.update.url, we no longer use it.
|
|
|
|
// See mobile/android/base/UpdateServiceHelper.java.in
|
2010-01-21 09:48:08 -08:00
|
|
|
#endif
|
2010-02-16 18:27:31 -08:00
|
|
|
|
|
|
|
// replace newlines with spaces on paste into single-line text boxes
|
|
|
|
pref("editor.singleLine.pasteNewlines", 2);
|
2010-03-07 10:03:58 -08:00
|
|
|
|
2010-11-18 11:36:46 -08:00
|
|
|
// threshold where a tap becomes a drag, in 1/240" reference pixels
|
2011-03-11 09:54:40 -08:00
|
|
|
// The names of the preferences are to be in sync with nsEventStateManager.cpp
|
|
|
|
pref("ui.dragThresholdX", 25);
|
|
|
|
pref("ui.dragThresholdY", 25);
|
2010-10-04 22:21:30 -07:00
|
|
|
|
2011-09-06 12:07:07 -07:00
|
|
|
pref("layers.acceleration.disabled", false);
|
2012-02-01 23:54:01 -08:00
|
|
|
pref("layers.offmainthreadcomposition.enabled", true);
|
2012-08-13 20:03:36 -07:00
|
|
|
pref("layers.async-video.enabled", true);
|
2012-10-25 14:11:12 -07:00
|
|
|
pref("layers.progressive-paint", true);
|
2012-02-01 23:54:01 -08:00
|
|
|
|
2011-01-03 17:06:27 -08:00
|
|
|
pref("notification.feature.enabled", true);
|
2011-01-05 11:02:00 -08:00
|
|
|
|
|
|
|
// prevent tooltips from showing up
|
|
|
|
pref("browser.chrome.toolbar_tips", false);
|
2011-04-29 16:46:20 -07:00
|
|
|
pref("indexedDB.feature.enabled", true);
|
2011-04-29 16:47:40 -07:00
|
|
|
pref("dom.indexedDB.warningQuota", 5);
|
2011-02-14 20:43:35 -08:00
|
|
|
|
|
|
|
// 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
|
2011-02-17 12:09:00 -08:00
|
|
|
|
2011-04-11 13:41:03 -07:00
|
|
|
// 0: don't show fullscreen keyboard
|
|
|
|
// 1: always show fullscreen keyboard
|
|
|
|
// -1: show fullscreen keyboard based on threshold pref
|
2012-01-26 13:51:23 -08:00
|
|
|
pref("widget.ime.android.landscape_fullscreen", 1);
|
2011-05-09 10:01:15 -07:00
|
|
|
pref("widget.ime.android.fullscreen_threshold", 250); // in hundreths of inches
|
2011-04-11 13:41:03 -07:00
|
|
|
|
2011-02-17 12:09:00 -08:00
|
|
|
// optimize images memory usage
|
|
|
|
pref("image.mem.decodeondraw", true);
|
|
|
|
pref("content.image.allow_locking", false);
|
2011-06-22 11:16:09 -07:00
|
|
|
pref("image.mem.min_discard_timeout_ms", 10000);
|
2011-02-17 12:09:00 -08:00
|
|
|
|
2011-03-21 11:20:34 -07:00
|
|
|
// enable touch events interfaces
|
2012-10-25 07:57:51 -07:00
|
|
|
pref("dom.w3c_touch_events.enabled", 1);
|
2011-03-21 11:20:34 -07:00
|
|
|
|
2011-04-26 12:39:21 -07:00
|
|
|
#ifdef MOZ_SAFE_BROWSING
|
2012-10-04 07:23:34 -07:00
|
|
|
pref("browser.safebrowsing.enabled", true);
|
|
|
|
pref("browser.safebrowsing.malware.enabled", true);
|
2012-09-24 13:34:27 -07:00
|
|
|
pref("browser.safebrowsing.debug", false);
|
|
|
|
|
|
|
|
pref("browser.safebrowsing.updateURL", "http://safebrowsing.clients.google.com/safebrowsing/downloads?client=SAFEBROWSING_ID&appver=%VERSION%&pver=2.2");
|
|
|
|
pref("browser.safebrowsing.keyURL", "https://sb-ssl.google.com/safebrowsing/newkey?client=SAFEBROWSING_ID&appver=%VERSION%&pver=2.2");
|
|
|
|
pref("browser.safebrowsing.gethashURL", "http://safebrowsing.clients.google.com/safebrowsing/gethash?client=SAFEBROWSING_ID&appver=%VERSION%&pver=2.2");
|
|
|
|
pref("browser.safebrowsing.reportURL", "http://safebrowsing.clients.google.com/safebrowsing/report?");
|
|
|
|
pref("browser.safebrowsing.reportGenericURL", "http://%LOCALE%.phish-generic.mozilla.com/?hl=%LOCALE%");
|
|
|
|
pref("browser.safebrowsing.reportErrorURL", "http://%LOCALE%.phish-error.mozilla.com/?hl=%LOCALE%");
|
|
|
|
pref("browser.safebrowsing.reportPhishURL", "http://%LOCALE%.phish-report.mozilla.com/?hl=%LOCALE%");
|
|
|
|
pref("browser.safebrowsing.reportMalwareURL", "http://%LOCALE%.malware-report.mozilla.com/?hl=%LOCALE%");
|
|
|
|
pref("browser.safebrowsing.reportMalwareErrorURL", "http://%LOCALE%.malware-error.mozilla.com/?hl=%LOCALE%");
|
|
|
|
|
|
|
|
pref("browser.safebrowsing.warning.infoURL", "http://www.mozilla.com/%LOCALE%/firefox/phishing-protection/");
|
|
|
|
pref("browser.safebrowsing.malware.reportURL", "http://safebrowsing.clients.google.com/safebrowsing/diagnostic?client=%NAME%&hl=%LOCALE%&site=");
|
2011-04-26 12:39:21 -07:00
|
|
|
|
|
|
|
// 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);
|
|
|
|
|
2012-09-24 13:34:27 -07:00
|
|
|
// Randomize all UrlClassifier data with a per-client key.
|
2012-11-02 17:53:10 -07:00
|
|
|
pref("urlclassifier.randomizeclient", false);
|
2012-09-24 13:34:27 -07:00
|
|
|
|
2011-04-26 12:39:21 -07:00
|
|
|
// The list of tables that use the gethash request to confirm partial results.
|
|
|
|
pref("urlclassifier.gethashtables", "goog-phish-shavar,goog-malware-shavar");
|
|
|
|
|
|
|
|
// 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.
|
|
|
|
pref("urlclassifier.confirm-age", 2700);
|
2011-03-21 11:20:34 -07:00
|
|
|
#endif
|
|
|
|
|
2011-06-07 12:11:37 -07:00
|
|
|
// True if this is the first time we are showing about:firstrun
|
|
|
|
pref("browser.firstrun.show.uidiscovery", true);
|
2011-10-18 11:05:28 -07:00
|
|
|
pref("browser.firstrun.show.localepicker", false);
|
2011-06-07 12:11:37 -07:00
|
|
|
|
2011-08-02 10:34:58 -07:00
|
|
|
// 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
|
2011-10-10 17:40:17 -07:00
|
|
|
pref("browser.dom.window.dump.enabled", true);
|
2011-09-26 17:25:41 -07:00
|
|
|
|
|
|
|
// controls if we want camera support
|
|
|
|
pref("device.camera.enabled", true);
|
|
|
|
pref("media.realtime_decoder.enabled", true);
|
2011-10-10 23:19:56 -07:00
|
|
|
|
|
|
|
pref("dom.report_all_js_exceptions", true);
|
|
|
|
pref("javascript.options.showInConsole", true);
|
2011-11-08 10:36:04 -08:00
|
|
|
|
|
|
|
pref("full-screen-api.enabled", true);
|
2012-01-18 17:41:28 -08:00
|
|
|
|
|
|
|
pref("direct-texture.force.enabled", false);
|
|
|
|
pref("direct-texture.force.disabled", false);
|
2012-04-10 03:05:45 -07:00
|
|
|
|
2012-04-11 09:25:40 -07:00
|
|
|
// show checkerboard pattern on android; we use background colour instead
|
2012-04-24 12:13:36 -07:00
|
|
|
pref("gfx.show_checkerboard_pattern", true);
|
2012-04-11 09:25:40 -07:00
|
|
|
|
2012-04-13 07:29:14 -07:00
|
|
|
// This fraction in 1000ths of velocity remains after every animation frame when the velocity is low.
|
|
|
|
pref("ui.scrolling.friction_slow", -1);
|
|
|
|
// This fraction in 1000ths of velocity remains after every animation frame when the velocity is high.
|
|
|
|
pref("ui.scrolling.friction_fast", -1);
|
|
|
|
// The maximum velocity change factor between events, per ms, in 1000ths.
|
|
|
|
// Direction changes are excluded.
|
|
|
|
pref("ui.scrolling.max_event_acceleration", -1);
|
|
|
|
// The rate of deceleration when the surface has overscrolled, in 1000ths.
|
|
|
|
pref("ui.scrolling.overscroll_decel_rate", -1);
|
|
|
|
// The fraction of the surface which can be overscrolled before it must snap back, in 1000ths.
|
|
|
|
pref("ui.scrolling.overscroll_snap_limit", -1);
|
|
|
|
// The minimum amount of space that must be present for an axis to be considered scrollable,
|
|
|
|
// in 1/1000ths of pixels.
|
|
|
|
pref("ui.scrolling.min_scrollable_distance", -1);
|
2012-05-04 23:46:16 -07:00
|
|
|
|
|
|
|
// Enable accessibility mode if platform accessibility is enabled.
|
2012-05-18 11:56:38 -07:00
|
|
|
pref("accessibility.accessfu.activate", 2);
|
2012-05-11 03:57:07 -07:00
|
|
|
|
|
|
|
// Mobile manages state by autodetection
|
|
|
|
pref("network.manage-offline-status", true);
|
2012-06-11 18:44:45 -07:00
|
|
|
|
|
|
|
// increase the timeout clamp for background tabs to 15 minutes
|
|
|
|
pref("dom.min_background_timeout_value", 900000);
|
2012-06-20 10:12:13 -07:00
|
|
|
|
|
|
|
// The default of font size in reader (1-7)
|
|
|
|
pref("reader.font_size", 4);
|
|
|
|
|
|
|
|
// The default of margin size in reader (5%-25%)
|
|
|
|
pref("reader.margin_size", 5);
|
|
|
|
|
|
|
|
// The default color scheme in reader (light, dark, sepia)
|
|
|
|
pref("reader.color_scheme", "light");
|
2012-07-26 02:48:52 -07:00
|
|
|
|
|
|
|
// Used to show a first-launch tip in reader
|
2012-08-07 09:49:30 -07:00
|
|
|
pref("reader.has_used_toolbar", false);
|
2012-08-09 12:54:36 -07:00
|
|
|
|
2012-08-10 01:15:16 -07:00
|
|
|
// Media plugins for libstagefright playback on android
|
2012-08-15 11:00:39 -07:00
|
|
|
pref("media.plugins.enabled", true);
|
2012-08-10 01:15:16 -07:00
|
|
|
|
2012-08-24 14:20:39 -07:00
|
|
|
// Stagefright's OMXCodec::CreationFlags. The interesting flag values are:
|
|
|
|
// 0 = Let Stagefright choose hardware or software decoding (default)
|
|
|
|
// 8 = Force software decoding
|
|
|
|
// 16 = Force hardware decoding
|
|
|
|
pref("media.stagefright.omxcodec.flags", 0);
|
|
|
|
|
2012-08-09 12:54:36 -07:00
|
|
|
// Coalesce touch events to prevent them from flooding the event queue
|
2012-10-19 08:18:01 -07:00
|
|
|
pref("dom.event.touch.coalescing.enabled", false);
|
2012-08-20 10:28:40 -07:00
|
|
|
|
|
|
|
// default orientation for the app, default to undefined
|
|
|
|
// the java GeckoScreenOrientationListener needs this to be defined
|
|
|
|
pref("app.orientation.default", "");
|