2008-04-18 13:41:49 +00:00
|
|
|
/* ***** BEGIN LICENSE BLOCK *****
|
|
|
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
* 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
* the License. You may obtain a copy of the License at
|
|
|
|
* http://www.mozilla.org/MPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* License.
|
|
|
|
*
|
|
|
|
* The Original Code is Mozilla Mobile Browser.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is
|
|
|
|
* Mozilla Corporation.
|
|
|
|
* Portions created by the Initial Developer are Copyright (C) 2008
|
|
|
|
* the Initial Developer. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
2010-12-28 05:27:36 +00:00
|
|
|
* Matt Brubeck <mbrubeck@mozilla.com>
|
2008-04-18 13:41:49 +00:00
|
|
|
*
|
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
|
|
|
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
|
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
* of those above. If you wish to allow use of your version of this file only
|
|
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
* use your version of this file under the terms of the MPL, indicate your
|
|
|
|
* decision by deleting the provisions above and replace them with the notice
|
|
|
|
* and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
* the provisions above, a recipient may use your version of this file under
|
|
|
|
* the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
*
|
|
|
|
* ***** END LICENSE BLOCK ***** */
|
|
|
|
|
|
|
|
#filter substitution
|
|
|
|
|
2010-09-01 23:25:15 +00:00
|
|
|
// for browser.xml binding
|
2010-10-28 22:43:17 +00:00
|
|
|
pref("toolkit.browser.cachePixelX", 580);
|
|
|
|
pref("toolkit.browser.cachePixelY", 1000);
|
2010-09-08 18:29:14 +00:00
|
|
|
pref("toolkit.browser.recacheRatio", 60);
|
2010-09-01 23:25:15 +00:00
|
|
|
|
2008-04-18 13:41:49 +00:00
|
|
|
pref("toolkit.defaultChromeURI", "chrome://browser/content/browser.xul");
|
2010-08-27 07:52:01 +00:00
|
|
|
pref("general.useragent.compatMode.firefox", true);
|
2008-07-11 18:51:28 +00:00
|
|
|
pref("browser.chromeURL", "chrome://browser/content/");
|
2008-04-18 13:41:49 +00:00
|
|
|
|
2010-03-26 15:21:53 +00:00
|
|
|
pref("browser.tabs.warnOnClose", true);
|
2010-06-24 03:42:38 +00:00
|
|
|
#ifdef MOZ_IPC
|
|
|
|
pref("browser.tabs.remote", true);
|
|
|
|
#else
|
2010-06-16 14:47:13 +00:00
|
|
|
pref("browser.tabs.remote", false);
|
2010-06-24 03:42:38 +00:00
|
|
|
#endif
|
2010-03-26 15:21:53 +00:00
|
|
|
|
2010-04-12 14:58:38 +00:00
|
|
|
pref("toolkit.screen.lock", false);
|
|
|
|
|
2010-04-23 00:54:41 +00: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");
|
2010-11-16 22:50:34 +00:00
|
|
|
|
|
|
|
// Device pixel to CSS px ratio, in percent. Set to -1 to calculate based on display density.
|
|
|
|
pref("browser.viewport.scaleRatio", -1);
|
2010-04-23 00:54:41 +00:00
|
|
|
|
2009-07-06 17:14:46 +00:00
|
|
|
/* use custom widget for html:select */
|
|
|
|
pref("ui.use_native_popup_windows", true);
|
|
|
|
|
2010-12-16 04:01:00 +00:00
|
|
|
/* allow scrollbars to float above chrome ui */
|
|
|
|
pref("ui.scrollbarsCanOverlapContent", 1);
|
|
|
|
|
2010-10-08 16:05:56 +00:00
|
|
|
/* use long press to display a context menu */
|
|
|
|
pref("ui.click_hold_context_menus", true);
|
|
|
|
|
2008-04-18 13:41:49 +00:00
|
|
|
/* cache prefs */
|
|
|
|
pref("browser.cache.disk.enable", false);
|
2009-07-01 18:32:06 +00:00
|
|
|
pref("browser.cache.disk.capacity", 0); // kilobytes
|
2010-11-08 16:05:23 +00:00
|
|
|
pref("browser.cache.disk.smart_size.enabled", false);
|
|
|
|
pref("browser.cache.disk.smart_size.first_run", false);
|
2010-01-05 21:57:26 +00:00
|
|
|
|
2008-04-18 13:41:49 +00:00
|
|
|
pref("browser.cache.memory.enable", true);
|
2009-07-01 18:32:06 +00:00
|
|
|
pref("browser.cache.memory.capacity", 1024); // kilobytes
|
|
|
|
|
|
|
|
/* image cache prefs */
|
2009-07-01 19:12:58 +00:00
|
|
|
pref("image.cache.size", 1048576); // bytes
|
2009-07-01 18:32:06 +00:00
|
|
|
|
|
|
|
/* offline cache prefs */
|
2009-10-14 20:36:47 +00:00
|
|
|
pref("browser.offline-apps.notify", true);
|
2009-07-01 18:32:06 +00:00
|
|
|
pref("browser.cache.offline.enable", true);
|
|
|
|
pref("browser.cache.offline.capacity", 5120); // kilobytes
|
|
|
|
pref("offline-apps.quota.max", 2048); // kilobytes
|
|
|
|
pref("offline-apps.quota.warn", 1024); // kilobytes
|
2008-04-18 13:41:49 +00:00
|
|
|
|
2010-08-25 05:10:52 +00:00
|
|
|
/* protocol warning prefs */
|
|
|
|
pref("network.protocol-handler.warn-external.tel", false);
|
|
|
|
pref("network.protocol-handler.warn-external.mailto", false);
|
|
|
|
|
2008-04-18 13:41:49 +00:00
|
|
|
/* http prefs */
|
|
|
|
pref("network.http.pipelining", true);
|
|
|
|
pref("network.http.pipelining.ssl", true);
|
|
|
|
pref("network.http.proxy.pipelining", true);
|
2008-08-01 21:20:56 +00:00
|
|
|
pref("network.http.pipelining.maxrequests" , 6);
|
2008-04-18 13:41:49 +00:00
|
|
|
pref("network.http.keep-alive.timeout", 600);
|
2008-08-01 21:20:56 +00:00
|
|
|
pref("network.http.max-connections", 6);
|
|
|
|
pref("network.http.max-connections-per-server", 4);
|
|
|
|
pref("network.http.max-persistent-connections-per-server", 4);
|
|
|
|
pref("network.http.max-persistent-connections-per-proxy", 4);
|
2010-09-03 03:42:19 +00:00
|
|
|
#ifdef MOZ_PLATFORM_MAEMO
|
2009-11-24 18:23:41 +00:00
|
|
|
pref("network.autodial-helper.enabled", true);
|
|
|
|
#endif
|
2008-04-18 13:41:49 +00:00
|
|
|
|
2011-01-06 18:28:16 +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);
|
|
|
|
|
2010-08-24 08:42:28 +00:00
|
|
|
/* history max results display */
|
|
|
|
pref("browser.display.history.maxresults", 100);
|
|
|
|
|
2008-04-18 13:41:49 +00:00
|
|
|
/* session history */
|
2009-06-01 15:47:55 +00:00
|
|
|
pref("browser.sessionhistory.max_total_viewers", 1);
|
2008-05-09 22:56:14 +00:00
|
|
|
pref("browser.sessionhistory.max_entries", 50);
|
2008-04-18 13:41:49 +00:00
|
|
|
|
2010-12-16 01:47:38 +00:00
|
|
|
/* session store */
|
2010-12-31 02:43:08 +00:00
|
|
|
pref("browser.sessionstore.resume_session_once", false);
|
2010-12-16 01:47:38 +00:00
|
|
|
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", 5);
|
|
|
|
|
2008-09-18 18:15:23 +00: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);
|
|
|
|
|
2008-05-02 20:15:45 +00:00
|
|
|
/* download manager (don't show the window or alert) */
|
2008-04-18 13:41:49 +00:00
|
|
|
pref("browser.download.useDownloadDir", true);
|
2008-08-28 21:45:58 +00:00
|
|
|
pref("browser.download.folderList", 1); // Default to ~/Downloads
|
2008-05-02 20:15:45 +00:00
|
|
|
pref("browser.download.manager.showAlertOnComplete", false);
|
2008-04-18 13:41:49 +00:00
|
|
|
pref("browser.download.manager.showAlertInterval", 2000);
|
|
|
|
pref("browser.download.manager.retention", 2);
|
2008-12-03 22:32:51 +00:00
|
|
|
pref("browser.download.manager.showWhenStarting", false);
|
2008-04-18 13:41:49 +00: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);
|
|
|
|
|
2008-05-02 20:15:45 +00:00
|
|
|
/* download alerts (disabled above) */
|
2008-04-18 13:41:49 +00:00
|
|
|
pref("alerts.slideIncrement", 1);
|
|
|
|
pref("alerts.slideIncrementTime", 10);
|
|
|
|
pref("alerts.totalOpenTime", 6000);
|
|
|
|
pref("alerts.height", 50);
|
|
|
|
|
|
|
|
/* password manager */
|
|
|
|
pref("signon.rememberSignons", true);
|
|
|
|
pref("signon.expireMasterPassword", false);
|
|
|
|
pref("signon.SignonFileName", "signons.txt");
|
|
|
|
|
2010-03-30 17:56:06 +00:00
|
|
|
/* form helper */
|
|
|
|
pref("formhelper.enabled", true);
|
|
|
|
pref("formhelper.autozoom", true);
|
|
|
|
pref("formhelper.restore", false);
|
|
|
|
|
2010-07-19 14:51:03 +00:00
|
|
|
/* find helper */
|
|
|
|
pref("findhelper.autozoom", true);
|
|
|
|
|
2008-04-18 13:41:49 +00:00
|
|
|
/* autocomplete */
|
|
|
|
pref("browser.formfill.enable", true);
|
|
|
|
|
2010-09-29 19:54:46 +00:00
|
|
|
/* microsummaries */
|
|
|
|
pref("browser.microsummary.enabled", false);
|
|
|
|
pref("browser.microsummary.updateGenerators", false);
|
2009-11-30 15:38:47 +00:00
|
|
|
|
2008-04-18 13:41:49 +00:00
|
|
|
/* spellcheck */
|
|
|
|
pref("layout.spellcheckDefault", 1);
|
|
|
|
|
|
|
|
/* extension manager and xpinstall */
|
2009-07-05 16:20:34 +00:00
|
|
|
pref("xpinstall.whitelist.add", "addons.mozilla.org");
|
2010-03-17 03:42:01 +00:00
|
|
|
|
|
|
|
pref("extensions.autoupdate.enabled", true);
|
|
|
|
pref("extensions.autoupdate.interval", 86400);
|
2009-11-13 21:32:29 +00:00
|
|
|
pref("extensions.update.enabled", false);
|
2008-04-18 13:41:49 +00: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-20 02:18:36 +00:00
|
|
|
pref("extensions.hideInstallButton", true);
|
2009-09-15 18:04:19 +00:00
|
|
|
pref("extensions.showMismatchUI", false);
|
2010-04-30 19:07:27 +00:00
|
|
|
pref("extensions.hideUpdateButton", false);
|
2008-04-18 13:41:49 +00:00
|
|
|
|
2009-11-24 18:41:56 +00: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%");
|
2008-05-22 23:58:27 +00:00
|
|
|
|
2008-08-20 02:18:36 +00:00
|
|
|
/* preferences for the Get Add-ons pane */
|
2010-10-06 21:00:42 +00:00
|
|
|
pref("extensions.getAddons.cache.enabled", false);
|
2010-09-15 10:40:12 +00:00
|
|
|
pref("extensions.getAddons.maxResults", 15);
|
2010-01-09 00:40:19 +00:00
|
|
|
pref("extensions.getAddons.recommended.browseURL", "https://addons.mozilla.org/%LOCALE%/mobile/recommended/");
|
2010-09-15 10:40:12 +00:00
|
|
|
pref("extensions.getAddons.recommended.url", "https://services.addons.mozilla.org/%LOCALE%/mobile/api/%API_VERSION%/list/featured/all/%MAX_RESULTS%/%OS%/%VERSION%");
|
2010-01-09 00:40:19 +00:00
|
|
|
pref("extensions.getAddons.search.browseURL", "https://addons.mozilla.org/%LOCALE%/mobile/search?q=%TERMS%");
|
2010-09-15 10:40:12 +00:00
|
|
|
pref("extensions.getAddons.search.url", "https://services.addons.mozilla.org/%LOCALE%/mobile/api/%API_VERSION%/search/%TERMS%/all/%MAX_RESULTS%/%OS%/%VERSION%");
|
2010-09-01 19:13:42 +00:00
|
|
|
pref("extensions.getAddons.browseAddons", "https://addons.mozilla.org/%LOCALE%/mobile/");
|
2008-08-20 02:18:36 +00:00
|
|
|
|
|
|
|
/* blocklist preferences */
|
|
|
|
pref("extensions.blocklist.enabled", true);
|
|
|
|
pref("extensions.blocklist.interval", 86400);
|
2010-09-29 19:43:45 +00: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%/");
|
2010-01-09 00:40:19 +00:00
|
|
|
pref("extensions.blocklist.detailsURL", "https://www.mozilla.com/%LOCALE%/blocklist/");
|
2008-08-20 02:18:36 +00:00
|
|
|
|
2008-07-11 18:51:28 +00:00
|
|
|
/* block popups by default, and notify the user about blocked popups */
|
|
|
|
pref("dom.disable_open_during_load", true);
|
|
|
|
pref("privacy.popups.showBrowserMessage", true);
|
|
|
|
|
2008-07-15 15:21:39 +00:00
|
|
|
pref("keyword.enabled", true);
|
2010-12-09 21:28:22 +00:00
|
|
|
pref("keyword.URL", "http://www.google.com/m?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=");
|
2008-07-15 15:21:39 +00:00
|
|
|
|
2008-07-16 15:41:38 +00:00
|
|
|
pref("accessibility.typeaheadfind", false);
|
|
|
|
pref("accessibility.typeaheadfind.timeout", 5000);
|
|
|
|
pref("accessibility.typeaheadfind.flashBar", 1);
|
|
|
|
pref("accessibility.typeaheadfind.linksonly", false);
|
2008-08-04 20:53:40 +00:00
|
|
|
pref("accessibility.typeaheadfind.casesensitive", 0);
|
2009-02-18 18:04:46 +00:00
|
|
|
// zoom key(F7) conflicts with caret browsing on maemo
|
|
|
|
pref("accessibility.browsewithcaret_shortcut.enabled", false);
|
2008-07-16 15:41:38 +00:00
|
|
|
|
2009-08-14 16:30:13 +00:00
|
|
|
// Whether or not we show a dialog box informing the user that the update was
|
|
|
|
// successfully applied.
|
|
|
|
pref("app.update.showInstalledUI", false);
|
|
|
|
|
2008-07-16 15:41:38 +00:00
|
|
|
// pointer to the default engine name
|
2010-01-09 00:40:19 +00:00
|
|
|
pref("browser.search.defaultenginename", "chrome://browser/locale/region.properties");
|
2008-09-09 15:52:21 +00:00
|
|
|
// SSL error page behaviour
|
|
|
|
pref("browser.ssl_override_behavior", 2);
|
|
|
|
pref("browser.xul.error_pages.expert_bad_cert", false);
|
2008-07-16 15:41:38 +00:00
|
|
|
|
|
|
|
// disable logging for the search service by default
|
|
|
|
pref("browser.search.log", false);
|
|
|
|
|
2009-06-09 17:55:14 +00: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 15:41:38 +00:00
|
|
|
|
|
|
|
// 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);
|
2008-07-22 20:33:22 +00:00
|
|
|
|
2009-11-25 17:54:06 +00: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 20:33:22 +00:00
|
|
|
// enable xul error pages
|
|
|
|
pref("browser.xul.error_pages.enabled", true);
|
|
|
|
|
2009-09-21 10:02:43 +00:00
|
|
|
// Specify emptyRestriction = 0 so that bookmarks appear in the list by default
|
2009-09-14 22:53:41 +00:00
|
|
|
pref("browser.urlbar.default.behavior", 0);
|
|
|
|
pref("browser.urlbar.default.behavior.emptyRestriction", 0);
|
|
|
|
|
2009-10-21 19:36:44 +00: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 17:55:14 +00:00
|
|
|
// various and sundry awesomebar prefs (should remove/re-evaluate
|
2008-07-25 17:30:17 +00:00
|
|
|
// these once bug 447900 is fixed)
|
|
|
|
pref("browser.urlbar.clickSelectsAll", true);
|
2009-07-22 00:05:01 +00:00
|
|
|
pref("browser.urlbar.doubleClickSelectsAll", true);
|
2008-07-25 17:30:17 +00:00
|
|
|
pref("browser.urlbar.autoFill", false);
|
|
|
|
pref("browser.urlbar.matchOnlyTyped", false);
|
|
|
|
pref("browser.urlbar.matchBehavior", 1);
|
|
|
|
pref("browser.urlbar.filter.javascript", true);
|
2010-04-13 03:38:42 +00:00
|
|
|
pref("browser.urlbar.maxRichResults", 24); // increased so we see more results when portrait
|
2008-07-25 17:30:17 +00: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 15:41:00 +00:00
|
|
|
pref("browser.urlbar.autocomplete.search_threshold", 5);
|
2008-07-25 17:30:17 +00: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);
|
2010-01-09 00:40:19 +00:00
|
|
|
pref("privacy.item.history", true);
|
2008-07-25 17:30:17 +00:00
|
|
|
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 22:15:25 +00:00
|
|
|
|
|
|
|
// disable color management
|
|
|
|
pref("gfx.color_management.mode", 0);
|
2008-09-20 05:56:06 +00:00
|
|
|
|
|
|
|
// don't allow JS to move and resize existing windows
|
|
|
|
pref("dom.disable_window_move_resize", true);
|
2008-09-22 17:37:07 +00:00
|
|
|
|
2009-07-29 04:09:10 +00:00
|
|
|
// prevent click image resizing for nsImageDocument
|
|
|
|
pref("browser.enable_click_image_resizing", false);
|
|
|
|
|
2008-09-24 16:14:06 +00: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 18:28:08 +00: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 21:11:01 +00:00
|
|
|
|
2008-09-07 06:54:06 +00: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-30 01:28:12 +00:00
|
|
|
pref("privacy.item.geolocation", true);
|
|
|
|
pref("privacy.item.siteSettings", true);
|
|
|
|
|
2010-02-10 01:00:40 +00:00
|
|
|
#ifdef MOZ_PLATFORM_MAEMO
|
2009-10-27 06:09:35 +00:00
|
|
|
pref("plugins.force.wmode", "opaque");
|
|
|
|
#endif
|
|
|
|
|
2010-01-09 00:40:19 +00: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-30 01:28:12 +00:00
|
|
|
|
|
|
|
// base url for the wifi geolocation network provider
|
|
|
|
pref("geo.wifi.uri", "https://www.google.com/loc/json");
|
|
|
|
|
|
|
|
// enable geo
|
|
|
|
pref("geo.enabled", true);
|
|
|
|
|
2009-03-05 20:18:42 +00:00
|
|
|
// content sink control -- controls responsiveness during page load
|
2009-12-18 20:19:57 +00:00
|
|
|
// see https://bugzilla.mozilla.org/show_bug.cgi?id=481566#c9
|
2010-10-15 21:14:26 +00: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 20:18:42 +00:00
|
|
|
|
2009-09-02 03:51:23 +00:00
|
|
|
pref("javascript.options.mem.gc_frequency", 300);
|
2011-01-06 17:19:48 +00:00
|
|
|
pref("javascript.options.mem.high_water_mark", 32);
|
2011-01-08 04:15:19 +00:00
|
|
|
pref("javascript.options.methodjit.chrome", false);
|
2009-03-26 15:36:02 +00:00
|
|
|
|
2010-10-08 00:46:49 +00:00
|
|
|
pref("dom.max_chrome_script_run_time", 0); // disable slow script dialog for chrome
|
2009-03-26 15:36:02 +00:00
|
|
|
pref("dom.max_script_run_time", 20);
|
2009-05-30 01:28:12 +00:00
|
|
|
|
2009-06-09 17:55:14 +00:00
|
|
|
// JS error console
|
2011-01-04 01:06:27 +00:00
|
|
|
pref("devtools.errorconsole.enabled", false);
|
2009-07-10 19:43:14 +00:00
|
|
|
|
|
|
|
// kinetic tweakables
|
2010-01-12 19:22:48 +00:00
|
|
|
pref("browser.ui.kinetic.updateInterval", 30);
|
|
|
|
pref("browser.ui.kinetic.decelerationRate", 20);
|
|
|
|
pref("browser.ui.kinetic.speedSensitivity", 80);
|
|
|
|
pref("browser.ui.kinetic.swipeLength", 160);
|
2009-08-24 16:50:52 +00:00
|
|
|
|
2010-04-08 19:57:05 +00:00
|
|
|
// zooming
|
2011-01-06 20:20:23 +00:00
|
|
|
pref("browser.ui.zoom.pageFitGranularity", 9); // don't zoom to fit by less than 1/9 (11%)
|
2010-09-15 22:05:50 +00:00
|
|
|
pref("browser.ui.zoom.animationDuration", 200); // ms duration of double-tap zoom animation
|
2010-12-28 05:27:36 +00:00
|
|
|
pref("browser.ui.zoom.reflow", true); // Change text wrapping on double-tap
|
2010-06-25 21:16:01 +00:00
|
|
|
|
|
|
|
// pinch gesture
|
|
|
|
pref("browser.ui.pinch.maxGrowth", 150); // max pinch distance growth
|
|
|
|
pref("browser.ui.pinch.maxShrink", 200); // max pinch distance shrinkage
|
|
|
|
pref("browser.ui.pinch.scalingFactor", 500); // scaling factor for above pinch limits
|
2010-04-08 19:57:05 +00:00
|
|
|
|
2010-11-18 19:36:46 +00:00
|
|
|
// Touch radius (area around the touch location to look for target elements),
|
|
|
|
// in 1/240-inch pixels:
|
2010-04-11 03:55:05 +00:00
|
|
|
pref("browser.ui.touch.left", 8);
|
|
|
|
pref("browser.ui.touch.right", 8);
|
2010-05-12 16:17:54 +00:00
|
|
|
pref("browser.ui.touch.top", 12);
|
|
|
|
pref("browser.ui.touch.bottom", 4);
|
2010-04-11 03:55:05 +00:00
|
|
|
pref("browser.ui.touch.weight.visited", 120); // percentage
|
2010-04-08 18:50:05 +00:00
|
|
|
|
2010-11-23 03:48:55 +00:00
|
|
|
// Sync
|
|
|
|
pref("browser.sync.enabled", true);
|
|
|
|
|
2010-01-26 23:34:11 +00:00
|
|
|
// plugins
|
|
|
|
pref("plugin.disable", true);
|
2010-05-13 16:05:42 +00:00
|
|
|
pref("dom.ipc.plugins.enabled", false);
|
2009-09-03 18:04:50 +00:00
|
|
|
|
|
|
|
// product URLs
|
2010-04-09 15:17:14 +00:00
|
|
|
// The breakpad report server to link to in about:crashes
|
|
|
|
pref("breakpad.reportURL", "http://crash-stats.mozilla.com/report/index/");
|
2010-01-15 21:44:45 +00:00
|
|
|
pref("app.releaseNotesURL", "http://www.mozilla.com/%LOCALE%/mobile/%VERSION%/releasenotes/");
|
2009-10-01 18:40:42 +00:00
|
|
|
//pref("app.support.baseURL", "http://support.mozilla.com/1/mobile/%VERSION%/%OS%/%LOCALE%/");
|
|
|
|
pref("app.support.baseURL", "http://mobile.support.mozilla.com/");
|
2010-09-23 20:29:53 +00:00
|
|
|
pref("app.privacyURL", "https://www.mozilla.com/%LOCALE%/legal/privacy/firefox/mobile/");
|
2010-01-09 00:40:19 +00:00
|
|
|
pref("app.creditsURL", "http://www.mozilla.com/%LOCALE%/mobile/credits/");
|
2010-09-23 20:29:53 +00:00
|
|
|
#if MOZ_UPDATE_CHANNEL == beta
|
|
|
|
pref("app.featuresURL", "http://www.mozilla.com/%LOCALE%/mobile/beta/features/");
|
|
|
|
pref("app.faqURL", "http://www.mozilla.com/%LOCALE%/mobile/beta/faq/");
|
|
|
|
#else
|
|
|
|
pref("app.featuresURL", "http://www.mozilla.com/%LOCALE%/mobile/features/");
|
|
|
|
pref("app.faqURL", "http://www.mozilla.com/%LOCALE%/mobile/faq/");
|
|
|
|
#endif
|
2009-09-10 03:21:26 +00: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 14:21:15 +00:00
|
|
|
|
2010-12-08 21:57:19 +00:00
|
|
|
pref("security.warn_viewing_mixed", false); // Warning is disabled. See Bug 616712.
|
2010-12-08 21:49:01 +00:00
|
|
|
|
2009-10-26 05:58:13 +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.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 20:58:29 +00:00
|
|
|
#ifdef MOZ_OFFICIAL_BRANDING
|
|
|
|
pref("browser.search.param.yahoo-fr", "moz35");
|
|
|
|
pref("browser.search.param.yahoo-fr-cjkt", "moz35");
|
2009-12-24 01:49:39 +00:00
|
|
|
pref("browser.search.param.yahoo-fr-ja", "mozff");
|
2009-12-01 20:58:29 +00:00
|
|
|
#endif
|
2010-01-21 17:48:08 +00:00
|
|
|
|
|
|
|
/* app update prefs */
|
2010-03-17 03:42:01 +00:00
|
|
|
pref("app.update.timer", 60000); // milliseconds (1 min)
|
|
|
|
|
2010-01-21 17:48:08 +00:00
|
|
|
#ifdef MOZ_UPDATER
|
2010-09-11 00:26:47 +00:00
|
|
|
pref("app.update.enabled", true);
|
|
|
|
pref("app.update.timerFirstInterval", 20000); // milliseconds
|
|
|
|
pref("app.update.auto", false);
|
2010-01-21 17:48:08 +00:00
|
|
|
pref("app.update.channel", "@MOZ_UPDATE_CHANNEL@");
|
|
|
|
pref("app.update.mode", 1);
|
|
|
|
pref("app.update.silent", false);
|
2010-02-17 04:42:13 +00:00
|
|
|
pref("app.update.url", "https://aus2.mozilla.org/update/4/%PRODUCT%/%VERSION%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/%PLATFORM_VERSION%/update.xml");
|
2010-01-21 17:48:08 +00:00
|
|
|
pref("app.update.nagTimer.restart", 86400);
|
|
|
|
pref("app.update.promptWaitTime", 43200);
|
|
|
|
pref("app.update.idletime", 60);
|
|
|
|
pref("app.update.showInstalledUI", false);
|
|
|
|
pref("app.update.incompatible.mode", 0);
|
2010-09-11 00:26:47 +00:00
|
|
|
pref("app.update.download.backgroundInterval", 0);
|
2010-01-21 17:48:08 +00:00
|
|
|
|
|
|
|
#ifdef MOZ_OFFICIAL_BRANDING
|
|
|
|
pref("app.update.interval", 86400);
|
|
|
|
pref("app.update.url.manual", "http://www.mozilla.com/%LOCALE%/m/");
|
|
|
|
pref("app.update.url.details", "http://www.mozilla.com/%LOCALE%/mobile/releases/");
|
2010-01-26 22:22:23 +00:00
|
|
|
#else
|
2010-01-21 17:48:08 +00:00
|
|
|
pref("app.update.interval", 28800);
|
2010-12-29 07:35:49 +00:00
|
|
|
pref("app.update.url.manual", "http://www.mozilla.com/%LOCALE%/mobile/");
|
|
|
|
pref("app.update.url.details", "http://www.mozilla.com/%LOCALE%/mobile/");
|
2010-01-21 17:48:08 +00:00
|
|
|
#endif
|
|
|
|
#endif
|
2010-02-17 02:27:31 +00:00
|
|
|
|
|
|
|
// replace newlines with spaces on paste into single-line text boxes
|
|
|
|
pref("editor.singleLine.pasteNewlines", 2);
|
2010-03-07 18:03:58 +00:00
|
|
|
|
|
|
|
#ifdef MOZ_PLATFORM_MAEMO
|
|
|
|
// update fonts for better readability
|
|
|
|
pref("font.default.x-baltic", "SwissA");
|
|
|
|
pref("font.default.x-central-euro", "SwissA");
|
|
|
|
pref("font.default.x-cyrillic", "SwissA");
|
|
|
|
pref("font.default.x-unicode", "SwissA");
|
|
|
|
pref("font.default.x-user-def", "SwissA");
|
|
|
|
pref("font.default.x-western", "SwissA");
|
|
|
|
#endif
|
2010-04-20 21:37:04 +00:00
|
|
|
|
2010-06-29 14:49:36 +00:00
|
|
|
// sync service
|
|
|
|
pref("services.sync.client.type", "mobile");
|
|
|
|
pref("services.sync.registerEngines", "Tab,Bookmarks,Form,History,Password");
|
|
|
|
pref("services.sync.autoconnectDelay", 5);
|
2010-09-09 09:07:16 +00:00
|
|
|
|
2010-11-18 19:36:46 +00:00
|
|
|
// threshold where a tap becomes a drag, in 1/240" reference pixels
|
|
|
|
pref("ui.dragThreshold", 24);
|
2010-10-05 05:21:30 +00:00
|
|
|
|
2010-12-16 05:10:36 +00:00
|
|
|
pref("layers.accelerate-all", false);
|
|
|
|
|
2011-01-04 01:06:27 +00:00
|
|
|
pref("notification.feature.enabled", true);
|