2008-04-18 06:41:49 -07: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):
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
|
|
|
|
pref("toolkit.defaultChromeURI", "chrome://browser/content/browser.xul");
|
|
|
|
pref("general.useragent.extra.mobile", "@APP_UA_NAME@/@APP_VERSION@");
|
2008-07-11 11:51:28 -07:00
|
|
|
pref("browser.chromeURL", "chrome://browser/content/");
|
2008-04-18 06:41:49 -07:00
|
|
|
|
2008-10-02 14:33:29 -07:00
|
|
|
pref("browser.startup.homepage", "about:firstrun");
|
2008-09-29 06:59:25 -07:00
|
|
|
pref("browser.ui.cursor", false);
|
2009-04-17 14:08:53 -07:00
|
|
|
#ifdef MOZ_PLATFORM_HILDON
|
|
|
|
pref("browser.ui.panning.fixup.mousemove", true);
|
|
|
|
#else
|
|
|
|
pref("browser.ui.panning.fixup.mousemove", false);
|
|
|
|
#endif
|
2008-04-18 06:41:49 -07:00
|
|
|
|
2008-12-06 21:08:17 -08:00
|
|
|
pref("javascript.options.showInConsole", false);
|
|
|
|
|
2008-04-18 06:41:49 -07:00
|
|
|
/* cache prefs */
|
|
|
|
pref("browser.cache.disk.enable", false);
|
|
|
|
pref("browser.cache.disk.capacity", 0);
|
|
|
|
pref("browser.cache.memory.enable", true);
|
|
|
|
pref("browser.cache.memory.capacity", 1024);
|
|
|
|
|
|
|
|
/* 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);
|
2008-08-01 14:20:56 -07: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);
|
2008-04-18 06:41:49 -07:00
|
|
|
|
|
|
|
/* session history */
|
|
|
|
pref("browser.sessionhistory.max_total_viewers", 0);
|
2008-05-09 15:56:14 -07:00
|
|
|
pref("browser.sessionhistory.max_entries", 50);
|
2008-04-18 06:41:49 -07: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);
|
|
|
|
|
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);
|
|
|
|
|
2008-05-02 13:15:45 -07:00
|
|
|
/* download alerts (disabled above) */
|
2008-04-18 06:41:49 -07: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");
|
|
|
|
|
|
|
|
/* autocomplete */
|
|
|
|
pref("browser.formfill.enable", true);
|
|
|
|
|
|
|
|
/* spellcheck */
|
|
|
|
pref("layout.spellcheckDefault", 1);
|
|
|
|
|
|
|
|
/* extension manager and xpinstall */
|
|
|
|
pref("xpinstall.dialog.confirm", "chrome://mozapps/content/xpinstall/xpinstallConfirm.xul");
|
2008-08-19 19:18:36 -07:00
|
|
|
pref("xpinstall.dialog.progress.skin", "chrome://browser/content/browser.xul");
|
|
|
|
pref("xpinstall.dialog.progress.chrome", "chrome://browser/content/browser.xul");
|
|
|
|
pref("xpinstall.dialog.progress.type.skin", "navigator:browser");
|
|
|
|
pref("xpinstall.dialog.progress.type.chrome", "navigator:browser");
|
2008-04-18 06:41:49 -07:00
|
|
|
pref("extensions.update.enabled", true);
|
|
|
|
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);
|
2008-04-18 06:41:49 -07:00
|
|
|
|
|
|
|
/* these point at AMO */
|
|
|
|
pref("extensions.update.url", "chrome://mozapps/locale/extensions/extensions.properties");
|
|
|
|
pref("extensions.getMoreExtensionsURL", "chrome://mozapps/locale/extensions/extensions.properties");
|
|
|
|
pref("extensions.getMoreThemesURL", "chrome://mozapps/locale/extensions/extensions.properties");
|
2008-05-22 16:58:27 -07:00
|
|
|
|
2008-08-19 19:18:36 -07:00
|
|
|
/* preferences for the Get Add-ons pane */
|
|
|
|
pref("extensions.getAddons.showPane", true);
|
|
|
|
pref("extensions.getAddons.browseAddons", "https://%LOCALE%.add-ons.mozilla.com/%LOCALE%/%APP%");
|
|
|
|
pref("extensions.getAddons.maxResults", 5);
|
|
|
|
pref("extensions.getAddons.recommended.browseURL", "https://%LOCALE%.add-ons.mozilla.com/%LOCALE%/%APP%/recommended");
|
|
|
|
pref("extensions.getAddons.recommended.url", "https://services.addons.mozilla.org/%LOCALE%/%APP%/api/%API_VERSION%/list/featured/all/10/%OS%/%VERSION%");
|
|
|
|
pref("extensions.getAddons.search.browseURL", "https://%LOCALE%.add-ons.mozilla.com/%LOCALE%/%APP%/search?q=%TERMS%");
|
|
|
|
pref("extensions.getAddons.search.url", "https://services.addons.mozilla.org/%LOCALE%/%APP%/api/%API_VERSION%/search/%TERMS%/all/10/%OS%/%VERSION%");
|
|
|
|
|
|
|
|
/* blocklist preferences */
|
|
|
|
pref("extensions.blocklist.enabled", true);
|
|
|
|
pref("extensions.blocklist.interval", 86400);
|
|
|
|
pref("extensions.blocklist.url", "https://addons.mozilla.org/blocklist/2/%APP_ID%/%APP_VERSION%/%PRODUCT%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/");
|
|
|
|
pref("extensions.blocklist.detailsURL", "http://%LOCALE%.www.mozilla.com/%LOCALE%/blocklist/");
|
|
|
|
|
|
|
|
/* dictionary download preference */
|
|
|
|
pref("browser.dictionaries.download.url", "https://%LOCALE%.add-ons.mozilla.com/%LOCALE%/firefox/%VERSION%/dictionaries/");
|
|
|
|
|
2008-05-22 16:58:27 -07:00
|
|
|
/* make clicking on links stand out a bit */
|
|
|
|
pref("browser.display.use_focus_colors", true);
|
|
|
|
pref("browser.display.focus_background_color", "#ffffa0");
|
|
|
|
pref("browser.display.focus_text_color", "#00000");
|
2008-10-08 16:36:41 -07:00
|
|
|
pref("browser.display.focus_ring_on_anything", true);
|
|
|
|
pref("browser.display.focus_ring_style", 0);
|
2008-07-09 10:33:40 -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);
|
|
|
|
|
2008-07-15 08:21:39 -07:00
|
|
|
pref("keyword.enabled", true);
|
2008-07-16 10:05:37 -07:00
|
|
|
pref("keyword.URL", "http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=");
|
2008-07-15 08:21:39 -07:00
|
|
|
|
2008-07-09 10:33:40 -07:00
|
|
|
pref("snav.enabled", true);
|
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
|
|
|
|
|
|
|
// pointer to the default engine name
|
|
|
|
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);
|
|
|
|
|
2008-08-19 19:18:36 -07:00
|
|
|
// Ordering of Search Engines in the Engine list.
|
2008-07-16 08:41:38 -07:00
|
|
|
pref("browser.search.order.1", "chrome://browser/locale/region.properties");
|
|
|
|
pref("browser.search.order.2", "chrome://browser/locale/region.properties");
|
|
|
|
|
|
|
|
// 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 13:33:22 -07:00
|
|
|
|
|
|
|
// enable xul error pages
|
|
|
|
pref("browser.xul.error_pages.enabled", true);
|
|
|
|
|
2008-07-25 10:30:17 -07:00
|
|
|
// Various and sundry awesomebar prefs (should remove/re-evaluate
|
|
|
|
// these once bug 447900 is fixed)
|
|
|
|
pref("browser.urlbar.clickSelectsAll", true);
|
|
|
|
pref("browser.urlbar.doubleClickSelectsAll", false);
|
|
|
|
pref("browser.urlbar.autoFill", false);
|
|
|
|
pref("browser.urlbar.matchOnlyTyped", false);
|
|
|
|
pref("browser.urlbar.matchBehavior", 1);
|
|
|
|
pref("browser.urlbar.filter.javascript", true);
|
|
|
|
pref("browser.urlbar.maxRichResults", 12);
|
|
|
|
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", "@");
|
|
|
|
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("privacy.item.history", true);
|
|
|
|
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);
|
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
|
|
|
|
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.sanitize.promptOnSanitize", false);
|
|
|
|
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);
|
|
|
|
|
2008-09-23 08:19:11 -07:00
|
|
|
|
2009-03-05 18:45:52 -08:00
|
|
|
pref("plugins.enabled", true);
|
2009-01-16 13:14:48 -08:00
|
|
|
|
2009-05-29 18:28:12 -07:00
|
|
|
// URL to the Learn More link XXX this is the firefox one. Bug XXX fixes this.
|
|
|
|
pref("browser.geolocation.warning.infoURL", "http://%LOCALE%.www.mozilla.com/%LOCALE%/firefox/geolocation/");
|
|
|
|
|
|
|
|
// 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-01-16 13:14:48 -08:00
|
|
|
#ifdef WINCE
|
|
|
|
pref("layout.css.dpi", 96);
|
|
|
|
#endif
|
2009-03-05 12:18:42 -08:00
|
|
|
|
|
|
|
// content sink control -- controls responsiveness during page load
|
|
|
|
pref("content.max.deflected.tokens", 10);
|
|
|
|
pref("content.max.tokenizing.time", 50000);
|
|
|
|
|
2009-03-26 08:34:54 -07:00
|
|
|
pref("javascript.options.jit.content", true);
|
|
|
|
pref("javascript.options.jit.chrome", true);
|
2009-03-26 08:36:02 -07:00
|
|
|
|
|
|
|
pref("dom.max_chrome_script_run_time", 30);
|
|
|
|
pref("dom.max_script_run_time", 20);
|
2009-05-29 18:28:12 -07:00
|
|
|
|