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@");
|
|
|
|
|
|
|
|
pref("browser.startup.homepage", "http://www.mozilla.org/");
|
|
|
|
pref("browser.ui.cursor", false);
|
|
|
|
|
|
|
|
/* 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);
|
|
|
|
pref("network.http.pipelining.maxrequests" , 2);
|
|
|
|
pref("network.http.keep-alive.timeout", 600);
|
|
|
|
pref("network.http.max-connections", 4);
|
|
|
|
pref("network.http.max-connections-per-server", 1);
|
|
|
|
pref("network.http.max-persistent-connections-per-server", 1);
|
|
|
|
pref("network.http.max-persistent-connections-per-proxy", 1);
|
|
|
|
|
|
|
|
/* 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
|
|
|
|
|
|
|
/* debugging prefs */
|
|
|
|
pref("browser.dom.window.dump.enabled", true);
|
|
|
|
pref("javascript.options.showInConsole", true);
|
|
|
|
pref("javascript.options.strict", true);
|
|
|
|
pref("nglayout.debug.disable_xul_cache", false);
|
|
|
|
pref("nglayout.debug.disable_xul_fastload", false);
|
|
|
|
|
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);
|
|
|
|
pref("browser.download.folderList", 0);
|
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);
|
|
|
|
pref("browser.download.manager.showWhenStarting", true);
|
2008-05-02 13:15:45 -07:00
|
|
|
pref("browser.download.manager.useWindow", 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");
|
|
|
|
pref("xpinstall.dialog.progress.skin", "chrome://mozapps/content/extensions/extensions.xul?type=themes");
|
|
|
|
pref("xpinstall.dialog.progress.chrome", "chrome://mozapps/content/extensions/extensions.xul?type=extensions");
|
|
|
|
pref("xpinstall.dialog.progress.type.skin", "Extension:Manager-themes");
|
|
|
|
pref("xpinstall.dialog.progress.type.chrome", "Extension:Manager-extensions");
|
|
|
|
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);
|
|
|
|
|
|
|
|
/* 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
|
|
|
|
|
|
|
/* 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-07-09 10:33:40 -07:00
|
|
|
|
|
|
|
pref("snav.enabled", true);
|