2007-03-11 05:21:48 +03:00
|
|
|
# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
# ***** 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.org code.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# Netscape Communications Corporation.
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 1998
|
|
|
|
# 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 *****
|
2004-02-11 03:56:17 +03:00
|
|
|
|
2005-06-10 04:07:47 +04:00
|
|
|
// XXX Toolkit-specific preferences should be moved into toolkit.js
|
|
|
|
|
2004-09-24 22:39:33 +04:00
|
|
|
#filter substitution
|
|
|
|
|
|
|
|
# SYNTAX HINTS: dashes are delimiters. Use underscores instead.
|
|
|
|
# The first character after a period must be alphabetic.
|
2004-02-11 03:56:17 +03:00
|
|
|
|
2005-08-09 01:05:37 +04:00
|
|
|
#ifdef XP_UNIX
|
|
|
|
#ifndef XP_MACOSX
|
|
|
|
#define UNIX_BUT_NOT_MAC
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2004-02-11 03:56:17 +03:00
|
|
|
pref("general.startup.browser", true);
|
|
|
|
|
|
|
|
pref("browser.chromeURL","chrome://browser/content/");
|
|
|
|
pref("browser.hiddenWindowChromeURL", "chrome://browser/content/hiddenWindow.xul");
|
|
|
|
pref("xpinstall.dialog.confirm", "chrome://mozapps/content/xpinstall/xpinstallConfirm.xul");
|
2006-06-27 01:34:54 +04:00
|
|
|
pref("xpinstall.dialog.progress.skin", "chrome://mozapps/content/extensions/extensions.xul");
|
|
|
|
pref("xpinstall.dialog.progress.chrome", "chrome://mozapps/content/extensions/extensions.xul");
|
2006-04-27 07:05:10 +04:00
|
|
|
pref("xpinstall.dialog.progress.type.skin", "Extension:Manager");
|
|
|
|
pref("xpinstall.dialog.progress.type.chrome", "Extension:Manager");
|
2004-02-11 03:56:17 +03:00
|
|
|
|
2005-04-23 05:39:51 +04:00
|
|
|
// Developers can set this to |true| if they are constantly changing files in their
|
|
|
|
// extensions directory so that the extension system does not constantly think that
|
|
|
|
// their extensions are being updated and thus reregistered every time the app is
|
|
|
|
// started.
|
|
|
|
pref("extensions.ignoreMTimeChanges", false);
|
|
|
|
// Enables some extra Extension System Logging (can reduce performance)
|
|
|
|
pref("extensions.logging.enabled", false);
|
2006-06-27 01:23:43 +04:00
|
|
|
// Hides the install button in the add-ons mgr
|
|
|
|
pref("extensions.hideInstallButton", true);
|
2004-04-25 14:37:18 +04:00
|
|
|
|
2008-01-28 20:11:52 +03: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");
|
2008-03-12 14:12:02 +03:00
|
|
|
pref("extensions.getAddons.recommended.url", "https://services.addons.mozilla.org/%LOCALE%/%APP%/api/%API_VERSION%/list/featured/all/10/%OS%/%VERSION%");
|
2008-01-28 20:11:52 +03:00
|
|
|
pref("extensions.getAddons.search.browseURL", "https://%LOCALE%.add-ons.mozilla.com/%LOCALE%/%APP%/search?q=%TERMS%");
|
2008-03-12 14:12:02 +03:00
|
|
|
pref("extensions.getAddons.search.url", "https://services.addons.mozilla.org/%LOCALE%/%APP%/api/%API_VERSION%/search/%TERMS%/all/10/%OS%/%VERSION%");
|
2008-01-28 20:11:52 +03:00
|
|
|
|
2006-03-09 00:54:27 +03:00
|
|
|
// Blocklist preferences
|
|
|
|
pref("extensions.blocklist.enabled", true);
|
|
|
|
pref("extensions.blocklist.interval", 86400);
|
2008-04-25 21:10:57 +04:00
|
|
|
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%/");
|
2006-08-19 06:00:52 +04:00
|
|
|
pref("extensions.blocklist.detailsURL", "http://%LOCALE%.www.mozilla.com/%LOCALE%/blocklist/");
|
2006-03-09 00:54:27 +03:00
|
|
|
|
2006-07-26 22:09:33 +04:00
|
|
|
// Dictionary download preference
|
2006-08-18 21:02:40 +04:00
|
|
|
pref("browser.dictionaries.download.url", "https://%LOCALE%.add-ons.mozilla.com/%LOCALE%/firefox/%VERSION%/dictionaries/");
|
2006-07-26 22:09:33 +04:00
|
|
|
|
2004-11-30 11:23:02 +03:00
|
|
|
// App-specific update preferences
|
2005-06-07 01:37:18 +04:00
|
|
|
|
2005-06-28 22:56:40 +04:00
|
|
|
// Whether or not app updates are enabled
|
2005-08-04 00:34:17 +04:00
|
|
|
pref("app.update.enabled", true);
|
2005-06-28 22:56:40 +04:00
|
|
|
|
2005-06-29 05:34:36 +04:00
|
|
|
// This preference turns on app.update.mode and allows automatic download and
|
|
|
|
// install to take place. We use a separate boolean toggle for this to make
|
|
|
|
// the UI easier to construct.
|
|
|
|
pref("app.update.auto", true);
|
|
|
|
|
2005-06-28 22:56:40 +04:00
|
|
|
// Defines how the Application Update Service notifies the user about updates:
|
|
|
|
//
|
|
|
|
// AUM Set to: Minor Releases: Major Releases:
|
|
|
|
// 0 download no prompt download no prompt
|
|
|
|
// 1 download no prompt download no prompt if no incompatibilities
|
|
|
|
// 2 download no prompt prompt
|
|
|
|
//
|
|
|
|
// See chart in nsUpdateService.js.in for more details
|
|
|
|
//
|
|
|
|
pref("app.update.mode", 1);
|
|
|
|
|
|
|
|
// If set to true, the Update Service will present no UI for any event.
|
|
|
|
pref("app.update.silent", false);
|
2005-06-07 01:37:18 +04:00
|
|
|
|
2005-08-25 06:16:35 +04:00
|
|
|
// Update service URL:
|
2007-10-02 04:52:49 +04:00
|
|
|
pref("app.update.url", "https://aus2.mozilla.org/update/3/%PRODUCT%/%VERSION%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/update.xml");
|
2006-08-19 06:00:52 +04:00
|
|
|
// app.update.url.manual is in branding section
|
|
|
|
// app.update.url.details is in branding section
|
2005-10-03 20:34:49 +04:00
|
|
|
|
2005-08-25 06:16:35 +04:00
|
|
|
// User-settable override to app.update.url for testing purposes.
|
|
|
|
//pref("app.update.url.override", "");
|
2005-06-22 04:59:50 +04:00
|
|
|
|
|
|
|
// Interval: Time between checks for a new version (in seconds)
|
|
|
|
// default=1 day
|
|
|
|
pref("app.update.interval", 86400);
|
2008-01-09 10:37:08 +03:00
|
|
|
// Interval: Time before prompting the user again to restart to install the
|
|
|
|
// latest download (in seconds) default=1 day
|
|
|
|
pref("app.update.nagTimer.restart", 86400);
|
2005-06-22 04:59:50 +04:00
|
|
|
// Interval: When all registered timers should be checked (in milliseconds)
|
2007-02-23 04:32:19 +03:00
|
|
|
// default=10 minutes
|
2005-08-26 23:40:55 +04:00
|
|
|
pref("app.update.timer", 600000);
|
2008-01-09 10:37:08 +03:00
|
|
|
// Give the user x seconds to react before showing the big UI. default=12 hrs
|
|
|
|
pref("app.update.promptWaitTime", 43200);
|
|
|
|
// Show the Update Checking/Ready UI when the user was idle for x seconds
|
2007-11-20 13:08:55 +03:00
|
|
|
pref("app.update.idletime", 60);
|
2005-06-07 01:37:18 +04:00
|
|
|
|
2005-06-30 05:35:45 +04:00
|
|
|
// Whether or not we show a dialog box informing the user that the update was
|
|
|
|
// successfully applied. This is off in Firefox by default since we show a
|
|
|
|
// upgrade start page instead! Other apps may wish to show this UI, and supply
|
|
|
|
// a whatsNewURL field in their brand.properties that contains a link to a page
|
|
|
|
// which tells users what's new in this new update.
|
|
|
|
pref("app.update.showInstalledUI", false);
|
|
|
|
|
2005-08-04 00:32:51 +04:00
|
|
|
// 0 = suppress prompting for incompatibilities if there are updates available
|
|
|
|
// to newer versions of installed addons that resolve them.
|
|
|
|
// 1 = suppress prompting for incompatibilities only if there are VersionInfo
|
|
|
|
// updates available to installed addons that resolve them, not newer
|
|
|
|
// versions.
|
|
|
|
pref("app.update.incompatible.mode", 0);
|
|
|
|
|
2004-11-30 11:23:02 +03:00
|
|
|
// Symmetric (can be overridden by individual extensions) update preferences.
|
|
|
|
// e.g.
|
|
|
|
// extensions.{GUID}.update.enabled
|
|
|
|
// extensions.{GUID}.update.url
|
|
|
|
// extensions.{GUID}.update.interval
|
|
|
|
// .. etc ..
|
|
|
|
//
|
|
|
|
pref("extensions.update.enabled", true);
|
2008-02-22 10:08:16 +03: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%");
|
2005-07-25 21:25:04 +04:00
|
|
|
pref("extensions.update.interval", 86400); // Check for updates to Extensions and
|
2006-06-20 06:58:31 +04:00
|
|
|
// Themes every day
|
2004-11-30 11:23:02 +03:00
|
|
|
// Non-symmetric (not shared by extensions) extension-specific [update] preferences
|
2007-07-29 07:19:33 +04:00
|
|
|
pref("extensions.getMoreExtensionsURL", "https://%LOCALE%.add-ons.mozilla.com/%LOCALE%/%APP%/%VERSION%/extensions/");
|
|
|
|
pref("extensions.getMoreThemesURL", "https://%LOCALE%.add-ons.mozilla.com/%LOCALE%/%APP%/%VERSION%/themes/");
|
2007-09-04 04:03:41 +04:00
|
|
|
pref("extensions.getMorePluginsURL", "https://%LOCALE%.add-ons.mozilla.com/%LOCALE%/%APP%/%VERSION%/plugins/");
|
2004-11-30 11:23:02 +03:00
|
|
|
pref("extensions.dss.enabled", false); // Dynamic Skin Switching
|
|
|
|
pref("extensions.dss.switchPending", false); // Non-dynamic switch pending after next
|
|
|
|
// restart.
|
|
|
|
|
2005-04-07 00:13:32 +04:00
|
|
|
pref("xpinstall.whitelist.add", "update.mozilla.org");
|
|
|
|
pref("xpinstall.whitelist.add.103", "addons.mozilla.org");
|
2004-04-21 08:35:27 +04:00
|
|
|
|
2004-02-11 03:56:17 +03:00
|
|
|
pref("keyword.enabled", true);
|
2006-07-26 05:19:42 +04:00
|
|
|
pref("keyword.URL", "chrome://browser-region/locale/region.properties");
|
2004-02-11 03:56:17 +03:00
|
|
|
|
2004-09-24 22:39:33 +04:00
|
|
|
pref("general.useragent.locale", "@AB_CD@");
|
2004-09-22 00:19:48 +04:00
|
|
|
pref("general.skins.selectedSkin", "classic/1.0");
|
2006-04-20 07:31:37 +04:00
|
|
|
pref("general.useragent.extra.firefox", "@APP_UA_NAME@/@APP_VERSION@");
|
2004-02-11 03:56:17 +03:00
|
|
|
|
|
|
|
pref("general.smoothScroll", false);
|
2005-08-09 01:05:37 +04:00
|
|
|
#ifdef UNIX_BUT_NOT_MAC
|
2004-02-11 03:56:17 +03:00
|
|
|
pref("general.autoScroll", false);
|
|
|
|
#else
|
|
|
|
pref("general.autoScroll", true);
|
|
|
|
#endif
|
|
|
|
|
2004-03-08 12:56:16 +03:00
|
|
|
// Whether or not the application should check at startup each time if it
|
|
|
|
// is the default browser.
|
|
|
|
pref("browser.shell.checkDefaultBrowser", true);
|
|
|
|
|
2006-08-19 04:23:40 +04:00
|
|
|
// 0 = blank, 1 = home (browser.startup.homepage), 2 = last visited page, 3 = resume previous browser session
|
|
|
|
// The behavior of option 3 is detailed at: http://wiki.mozilla.org/Session_Restore
|
2004-02-11 03:56:17 +03:00
|
|
|
pref("browser.startup.page", 1);
|
2007-01-05 20:09:56 +03:00
|
|
|
pref("browser.startup.homepage", "resource:/browserconfig.properties");
|
2004-11-30 11:23:02 +03:00
|
|
|
|
2004-02-11 03:56:17 +03:00
|
|
|
pref("browser.cache.disk.capacity", 50000);
|
|
|
|
pref("browser.enable_automatic_image_resizing", true);
|
|
|
|
pref("browser.chrome.site_icons", true);
|
|
|
|
pref("browser.chrome.favicons", true);
|
|
|
|
pref("browser.formfill.enable", true);
|
2007-06-15 22:01:26 +04:00
|
|
|
pref("browser.warnOnQuit", true);
|
2008-02-23 12:32:09 +03:00
|
|
|
pref("browser.warnOnRestart", true);
|
2008-03-08 14:30:39 +03:00
|
|
|
pref("browser.fullscreen.autohide", true);
|
|
|
|
pref("browser.fullscreen.animateUp", 1);
|
2004-02-11 03:56:17 +03:00
|
|
|
|
2007-12-20 01:43:12 +03:00
|
|
|
#ifdef UNIX_BUT_NOT_MAC
|
2007-08-04 12:35:30 +04:00
|
|
|
pref("browser.urlbar.clickSelectsAll", false);
|
|
|
|
#else
|
|
|
|
pref("browser.urlbar.clickSelectsAll", true);
|
|
|
|
#endif
|
|
|
|
#ifdef UNIX_BUT_NOT_MAC
|
|
|
|
pref("browser.urlbar.doubleClickSelectsAll", true);
|
|
|
|
#else
|
|
|
|
pref("browser.urlbar.doubleClickSelectsAll", false);
|
|
|
|
#endif
|
|
|
|
pref("browser.urlbar.autoFill", false);
|
|
|
|
pref("browser.urlbar.matchOnlyTyped", false);
|
2008-04-24 08:20:07 +04:00
|
|
|
// 0: Match anywhere (e.g., middle of words)
|
|
|
|
// 1: Match on word boundaries and then try matching anywhere
|
|
|
|
// 2: Match only on word boundaries (e.g., after / or .)
|
|
|
|
pref("browser.urlbar.matchBehavior", 1);
|
2008-02-24 03:54:20 +03:00
|
|
|
pref("browser.urlbar.filter.javascript", true);
|
2007-08-04 12:35:30 +04:00
|
|
|
|
2007-11-30 07:58:00 +03:00
|
|
|
// the maximum number of results to show in autocomplete when doing richResults
|
2008-03-22 09:58:41 +03:00
|
|
|
pref("browser.urlbar.maxRichResults", 12);
|
2008-01-29 09:53:20 +03:00
|
|
|
// Size of "chunks" affects the number of places to process between each search
|
|
|
|
// timeout (ms). Too big and the UI will be unresponsive; too small and we'll
|
|
|
|
// be waiting on the timeout too often without many results.
|
2008-02-04 22:36:22 +03:00
|
|
|
pref("browser.urlbar.search.chunkSize", 1000);
|
2008-03-23 09:38:28 +03:00
|
|
|
pref("browser.urlbar.search.timeout", 100);
|
2007-11-30 07:58:00 +03:00
|
|
|
|
2008-04-03 07:02:10 +04:00
|
|
|
// Number of milliseconds to wait for the http headers (and thus
|
|
|
|
// the Content-Disposition filename) before giving up and falling back to
|
|
|
|
// picking a filename without that info in hand so that the user sees some
|
|
|
|
// feedback from their action.
|
|
|
|
pref("browser.download.saveLinkAsFilenameTimeout", 1000);
|
|
|
|
|
2004-02-11 03:56:17 +03:00
|
|
|
pref("browser.download.useDownloadDir", true);
|
|
|
|
pref("browser.download.folderList", 0);
|
|
|
|
pref("browser.download.manager.showAlertOnComplete", true);
|
|
|
|
pref("browser.download.manager.showAlertInterval", 2000);
|
|
|
|
pref("browser.download.manager.retention", 2);
|
|
|
|
pref("browser.download.manager.showWhenStarting", true);
|
|
|
|
pref("browser.download.manager.useWindow", true);
|
2004-09-29 12:12:52 +04:00
|
|
|
pref("browser.download.manager.closeWhenDone", false);
|
2004-03-04 04:13:25 +03:00
|
|
|
pref("browser.download.manager.openDelay", 0);
|
2004-02-11 06:48:02 +03:00
|
|
|
pref("browser.download.manager.focusWhenStarting", false);
|
|
|
|
pref("browser.download.manager.flashCount", 2);
|
2007-10-03 20:00:49 +04:00
|
|
|
pref("browser.download.manager.addToRecentDocs", true);
|
2008-01-27 00:11:31 +03:00
|
|
|
pref("browser.download.manager.quitBehavior", 0);
|
2008-01-30 08:07:44 +03:00
|
|
|
pref("browser.download.manager.scanWhenDone", true);
|
2008-03-20 04:16:02 +03:00
|
|
|
pref("browser.download.manager.resumeOnWakeDelay", 10000);
|
2004-02-11 03:56:17 +03:00
|
|
|
|
2006-08-19 10:15:03 +04:00
|
|
|
// search engines URL
|
|
|
|
pref("browser.search.searchEnginesURL", "https://%LOCALE%.add-ons.mozilla.com/%LOCALE%/firefox/%VERSION%/search-engines/");
|
|
|
|
|
2004-02-11 03:56:17 +03:00
|
|
|
// pointer to the default engine name
|
2004-11-30 11:23:02 +03:00
|
|
|
pref("browser.search.defaultenginename", "chrome://browser-region/locale/region.properties");
|
2006-03-17 10:16:00 +03:00
|
|
|
|
|
|
|
// disable logging for the search service by default
|
|
|
|
pref("browser.search.log", false);
|
|
|
|
|
2004-11-30 11:23:02 +03:00
|
|
|
// Ordering of Search Engines in the Engine list.
|
|
|
|
pref("browser.search.order.1", "chrome://browser-region/locale/region.properties");
|
|
|
|
pref("browser.search.order.2", "chrome://browser-region/locale/region.properties");
|
2004-08-29 12:17:38 +04:00
|
|
|
|
2005-09-17 23:51:21 +04:00
|
|
|
// search bar results always open in a new tab
|
|
|
|
pref("browser.search.openintab", false);
|
|
|
|
|
2005-08-12 07:06:39 +04:00
|
|
|
// send ping to the server to update
|
|
|
|
pref("browser.search.update", true);
|
|
|
|
|
2006-07-21 03:00:39 +04:00
|
|
|
// disable logging for the search service update system by default
|
|
|
|
pref("browser.search.update.log", false);
|
|
|
|
|
|
|
|
// Check whether we need to perform engine updates every 6 hours
|
|
|
|
pref("browser.search.updateinterval", 6);
|
|
|
|
|
2007-08-15 22:24:54 +04:00
|
|
|
// Whether or not microsummary and generator updates are enabled
|
|
|
|
pref("browser.microsummary.enabled", true);
|
|
|
|
pref("browser.microsummary.updateGenerators", true);
|
|
|
|
|
2006-07-21 02:54:19 +04:00
|
|
|
// enable search suggestions by default
|
|
|
|
pref("browser.search.suggest.enabled", true);
|
|
|
|
|
2004-02-11 03:56:17 +03:00
|
|
|
pref("browser.history.grouping", "day");
|
2006-12-08 22:56:31 +03:00
|
|
|
pref("browser.history.showSessions", false);
|
2004-02-11 03:56:17 +03:00
|
|
|
pref("browser.sessionhistory.max_entries", 50);
|
2007-07-25 23:18:41 +04:00
|
|
|
pref("browser.history_expire_days", 180);
|
2007-12-05 11:30:08 +03:00
|
|
|
pref("browser.history_expire_days_min", 90);
|
|
|
|
pref("browser.history_expire_sites", 40000);
|
2005-03-22 03:38:35 +03:00
|
|
|
|
|
|
|
// handle external links
|
|
|
|
// 0=default window, 1=current window/tab, 2=new window, 3=new tab in most recent window
|
|
|
|
pref("browser.link.open_external", 3);
|
|
|
|
|
|
|
|
// handle links targeting new windows
|
2006-03-03 23:19:49 +03:00
|
|
|
pref("browser.link.open_newwindow", 3);
|
2005-03-22 03:38:35 +03:00
|
|
|
|
|
|
|
// 0: no restrictions - divert everything
|
|
|
|
// 1: don't divert window.open at all
|
|
|
|
// 2: don't divert window.open with features
|
2005-10-22 03:33:53 +04:00
|
|
|
pref("browser.link.open_newwindow.restriction", 2);
|
2005-03-22 03:38:35 +03:00
|
|
|
|
2007-12-29 06:13:07 +03:00
|
|
|
// Tabbed browser
|
|
|
|
pref("browser.tabs.autoHide", true);
|
|
|
|
pref("browser.tabs.forceHide", false);
|
|
|
|
pref("browser.tabs.warnOnClose", true);
|
|
|
|
pref("browser.tabs.warnOnOpen", true);
|
|
|
|
pref("browser.tabs.maxOpenBeforeWarn", 15);
|
2004-02-11 03:56:17 +03:00
|
|
|
pref("browser.tabs.loadInBackground", true);
|
|
|
|
pref("browser.tabs.loadFolderAndReplace", true);
|
|
|
|
pref("browser.tabs.opentabfor.middleclick", true);
|
2004-11-30 11:23:02 +03:00
|
|
|
pref("browser.tabs.loadDivertedInBackground", false);
|
2004-05-28 21:18:13 +04:00
|
|
|
pref("browser.tabs.loadBookmarksInBackground", false);
|
2006-08-18 23:50:16 +04:00
|
|
|
pref("browser.tabs.tabMinWidth", 100);
|
2007-05-25 15:08:58 +04:00
|
|
|
pref("browser.tabs.tabMaxWidth", 250);
|
2006-07-11 00:14:56 +04:00
|
|
|
pref("browser.tabs.tabClipWidth", 140);
|
2006-09-13 02:41:31 +04:00
|
|
|
|
|
|
|
// Where to show tab close buttons:
|
|
|
|
// 0 on active tab only
|
|
|
|
// 1 on all tabs until tabClipWidth is reached, then active tab only
|
|
|
|
// 2 no close buttons at all
|
|
|
|
// 3 at the end of the tabstrip
|
|
|
|
pref("browser.tabs.closeButtons", 1);
|
2006-01-21 02:04:26 +03:00
|
|
|
|
|
|
|
// When tabs opened by links in other tabs via a combination of
|
|
|
|
// browser.link.open_newwindow being set to 3 and target="_blank" etc are
|
|
|
|
// closed:
|
|
|
|
// true return to the tab that opened this tab (its owner)
|
|
|
|
// false return to the adjacent tab (old default)
|
|
|
|
pref("browser.tabs.selectOwnerOnClose", true);
|
2004-02-11 03:56:17 +03:00
|
|
|
|
|
|
|
// Default bookmark sorting
|
|
|
|
pref("browser.bookmarks.sort.direction", "descending");
|
|
|
|
pref("browser.bookmarks.sort.resource", "rdf:http://home.netscape.com/NC-rdf#Name");
|
|
|
|
|
2008-03-13 22:25:52 +03:00
|
|
|
// By default, do not export HTML at shutdown.
|
|
|
|
// If true, at shutdown the bookmarks in your menu and toolbar will
|
|
|
|
// be exported as HTML to the bookmarks.html file.
|
|
|
|
pref("browser.bookmarks.autoExportHTML", false);
|
2007-11-09 23:11:13 +03:00
|
|
|
|
2008-04-04 00:51:55 +04:00
|
|
|
// The maximum number of daily bookmark backups to
|
|
|
|
// keep in {PROFILEDIR}/bookmarkbackups. Special values:
|
|
|
|
// -1: unlimited
|
|
|
|
// 0: no backups created (and deletes all existing backups)
|
|
|
|
pref("browser.bookmarks.max_backups", 5);
|
|
|
|
|
2004-02-11 03:56:17 +03:00
|
|
|
// Scripts & Windows prefs
|
2004-11-30 11:23:02 +03:00
|
|
|
pref("dom.disable_open_during_load", true);
|
2006-08-18 23:50:16 +04:00
|
|
|
#ifdef DEBUG
|
|
|
|
pref("javascript.options.showInConsole", true);
|
2007-06-06 04:05:11 +04:00
|
|
|
pref("general.warnOnAboutConfig", false);
|
2006-08-18 23:50:16 +04:00
|
|
|
#else
|
2004-11-30 11:23:02 +03:00
|
|
|
pref("javascript.options.showInConsole", false);
|
2006-08-18 23:50:16 +04:00
|
|
|
#endif
|
|
|
|
|
2004-12-01 10:09:48 +03:00
|
|
|
// Make the status bar reliably present and unaffected by pages
|
2004-11-30 11:23:02 +03:00
|
|
|
pref("dom.disable_window_open_feature.status", true);
|
|
|
|
// This is the pref to control the location bar, change this to true to
|
|
|
|
// force this instead of or in addition to the status bar - this makes
|
2007-08-23 22:49:02 +04:00
|
|
|
// the origin of popup windows more obvious to avoid spoofing. We would
|
|
|
|
// rather not do it by default because it affects UE for web applications, but
|
|
|
|
// without it there isn't a really good way to prevent chrome spoofing, see bug 337344
|
|
|
|
pref("dom.disable_window_open_feature.location", true);
|
2004-09-07 03:23:54 +04:00
|
|
|
pref("dom.disable_window_status_change", true);
|
2008-03-19 23:15:13 +03:00
|
|
|
// allow JS to move and resize existing windows
|
|
|
|
pref("dom.disable_window_move_resize", false);
|
2005-08-10 09:50:54 +04:00
|
|
|
// prevent JS from monkeying with window focus, etc
|
|
|
|
pref("dom.disable_window_flip", true);
|
2006-03-03 23:34:56 +03:00
|
|
|
|
2004-02-11 03:56:17 +03:00
|
|
|
// popups.policy 1=allow,2=reject
|
|
|
|
pref("privacy.popups.policy", 1);
|
|
|
|
pref("privacy.popups.usecustom", true);
|
|
|
|
pref("privacy.popups.firstTime", true);
|
2004-11-30 11:23:02 +03:00
|
|
|
pref("privacy.popups.showBrowserMessage", true);
|
|
|
|
|
2008-01-27 01:33:24 +03:00
|
|
|
pref("privacy.item.history", true);
|
|
|
|
pref("privacy.item.formdata", true);
|
|
|
|
pref("privacy.item.passwords", false);
|
|
|
|
pref("privacy.item.downloads", true);
|
|
|
|
pref("privacy.item.cookies", false);
|
|
|
|
pref("privacy.item.cache", true);
|
|
|
|
pref("privacy.item.siteprefs", false);
|
|
|
|
pref("privacy.item.sessions", true);
|
|
|
|
pref("privacy.item.offlineApps", false);
|
2005-02-25 12:07:58 +03:00
|
|
|
|
|
|
|
pref("privacy.sanitize.sanitizeOnShutdown", false);
|
|
|
|
pref("privacy.sanitize.promptOnSanitize", true);
|
|
|
|
|
2004-11-30 11:23:02 +03:00
|
|
|
pref("network.proxy.share_proxy_settings", false); // use the same proxy settings for all protocols
|
2004-02-11 03:56:17 +03:00
|
|
|
|
2008-02-25 11:50:16 +03:00
|
|
|
pref("network.cookie.cookieBehavior", 0); // 0-Accept, 1-dontAcceptForeign, 2-dontUse
|
2004-02-11 03:56:17 +03:00
|
|
|
|
|
|
|
// l12n and i18n
|
|
|
|
pref("intl.accept_languages", "chrome://global/locale/intl.properties");
|
|
|
|
pref("intl.charsetmenu.browser.static", "chrome://global/locale/intl.properties");
|
|
|
|
pref("intl.charsetmenu.browser.more1", "chrome://global/locale/intl.properties");
|
|
|
|
pref("intl.charsetmenu.browser.more2", "chrome://global/locale/intl.properties");
|
|
|
|
pref("intl.charsetmenu.browser.more3", "chrome://global/locale/intl.properties");
|
|
|
|
pref("intl.charsetmenu.browser.more4", "chrome://global/locale/intl.properties");
|
|
|
|
pref("intl.charsetmenu.browser.more5", "chrome://global/locale/intl.properties");
|
2004-03-06 09:11:48 +03:00
|
|
|
pref("intl.charsetmenu.browser.unicode", "chrome://global/locale/intl.properties");
|
2004-02-11 03:56:17 +03:00
|
|
|
pref("intl.charset.detector", "chrome://global/locale/intl.properties");
|
|
|
|
pref("intl.charset.default", "chrome://global-platform/locale/intl.properties");
|
|
|
|
pref("font.language.group", "chrome://global/locale/intl.properties");
|
|
|
|
pref("intl.menuitems.alwaysappendaccesskeys","chrome://global/locale/intl.properties");
|
2005-07-20 12:40:13 +04:00
|
|
|
pref("intl.menuitems.insertseparatorbeforeaccesskeys","chrome://global/locale/intl.properties");
|
2004-02-11 03:56:17 +03:00
|
|
|
|
|
|
|
// 0=lines, 1=pages, 2=history , 3=text size
|
2005-09-26 07:40:18 +04:00
|
|
|
#ifdef XP_MACOSX
|
|
|
|
// On OS X, if the wheel has one axis only, shift+wheel comes through as a
|
|
|
|
// horizontal scroll event. Thus, we can't assign anything other than normal
|
|
|
|
// scrolling to shift+wheel.
|
2005-11-17 21:50:50 +03:00
|
|
|
pref("mousewheel.withshiftkey.action",0);
|
|
|
|
pref("mousewheel.withshiftkey.sysnumlines",true);
|
|
|
|
pref("mousewheel.withshiftkey.numlines",1);
|
|
|
|
pref("mousewheel.withaltkey.action",2);
|
|
|
|
pref("mousewheel.withaltkey.sysnumlines",false);
|
|
|
|
pref("mousewheel.withaltkey.numlines",1);
|
|
|
|
pref("mousewheel.withmetakey.action",0);
|
2005-10-10 23:29:47 +04:00
|
|
|
pref("mousewheel.withmetakey.sysnumlines",false);
|
2005-11-17 21:50:50 +03:00
|
|
|
pref("mousewheel.withmetakey.numlines",1);
|
2005-09-26 07:40:18 +04:00
|
|
|
#else
|
2004-02-11 03:56:17 +03:00
|
|
|
pref("mousewheel.withshiftkey.action",2);
|
2005-10-10 23:29:47 +04:00
|
|
|
pref("mousewheel.withshiftkey.sysnumlines",false);
|
2005-11-17 21:50:50 +03:00
|
|
|
pref("mousewheel.withshiftkey.numlines",1);
|
2004-02-11 03:56:17 +03:00
|
|
|
pref("mousewheel.withaltkey.action",0);
|
2005-10-10 23:29:47 +04:00
|
|
|
pref("mousewheel.withaltkey.sysnumlines",false);
|
2005-11-17 21:50:50 +03:00
|
|
|
pref("mousewheel.withaltkey.numlines",1);
|
|
|
|
pref("mousewheel.withmetakey.action",0);
|
|
|
|
pref("mousewheel.withmetakey.sysnumlines",true);
|
|
|
|
pref("mousewheel.withmetakey.numlines",1);
|
|
|
|
#endif
|
2008-02-13 14:00:45 +03:00
|
|
|
pref("mousewheel.withcontrolkey.action",3);
|
2005-11-17 21:50:50 +03:00
|
|
|
pref("mousewheel.withcontrolkey.sysnumlines",false);
|
|
|
|
pref("mousewheel.withcontrolkey.numlines",1);
|
2004-02-11 03:56:17 +03:00
|
|
|
|
|
|
|
pref("profile.allow_automigration", false); // setting to false bypasses automigration in the profile code
|
|
|
|
|
|
|
|
// Customizable toolbar stuff
|
|
|
|
pref("custtoolbar.personal_toolbar_folder", "");
|
|
|
|
|
|
|
|
// pref to control the alert notification
|
|
|
|
pref("alerts.slideIncrement", 1);
|
|
|
|
pref("alerts.slideIncrementTime", 10);
|
|
|
|
pref("alerts.totalOpenTime", 4000);
|
|
|
|
|
2005-06-28 19:49:37 +04:00
|
|
|
pref("browser.xul.error_pages.enabled", true);
|
2008-05-02 11:24:28 +04:00
|
|
|
pref("browser.xul.error_pages.expert_bad_cert", false);
|
2004-02-11 03:56:17 +03:00
|
|
|
|
2004-10-25 11:46:01 +04:00
|
|
|
// We want to make sure mail URLs are handled externally...
|
2004-02-11 03:56:17 +03:00
|
|
|
pref("network.protocol-handler.external.mailto", true); // for mail
|
2004-10-25 11:46:01 +04:00
|
|
|
pref("network.protocol-handler.external.news", true); // for news
|
|
|
|
pref("network.protocol-handler.external.snews", true); // for secure news
|
|
|
|
pref("network.protocol-handler.external.nntp", true); // also news
|
|
|
|
// ...without warning dialogs
|
|
|
|
pref("network.protocol-handler.warn-external.mailto", false);
|
|
|
|
pref("network.protocol-handler.warn-external.news", false);
|
|
|
|
pref("network.protocol-handler.warn-external.snews", false);
|
|
|
|
pref("network.protocol-handler.warn-external.nntp", false);
|
2004-02-11 03:56:17 +03:00
|
|
|
|
|
|
|
// By default, all protocol handlers are exposed. This means that
|
|
|
|
// the browser will respond to openURL commands for all URL types.
|
|
|
|
// It will also try to open link clicks inside the browser before
|
|
|
|
// failing over to the system handlers.
|
|
|
|
pref("network.protocol-handler.expose-all", true);
|
2004-03-17 03:22:20 +03:00
|
|
|
pref("network.protocol-handler.expose.mailto", false);
|
2004-10-25 11:46:01 +04:00
|
|
|
pref("network.protocol-handler.expose.news", false);
|
|
|
|
pref("network.protocol-handler.expose.snews", false);
|
|
|
|
pref("network.protocol-handler.expose.nntp", false);
|
2004-02-11 03:56:17 +03:00
|
|
|
|
|
|
|
// Default security warning dialogs to show once.
|
2007-08-20 18:22:42 +04:00
|
|
|
pref("security.warn_entering_secure.show_once", false);
|
2004-02-11 03:56:17 +03:00
|
|
|
pref("security.warn_entering_weak.show_once", true);
|
2007-08-20 18:22:42 +04:00
|
|
|
pref("security.warn_leaving_secure.show_once", false);
|
2004-02-11 03:56:17 +03:00
|
|
|
pref("security.warn_viewing_mixed.show_once", true);
|
2007-08-20 18:22:42 +04:00
|
|
|
pref("security.warn_submit_insecure.show_once", false);
|
2004-06-02 01:31:54 +04:00
|
|
|
|
2004-11-30 11:23:02 +03:00
|
|
|
pref("accessibility.typeaheadfind", false);
|
|
|
|
pref("accessibility.typeaheadfind.timeout", 5000);
|
|
|
|
pref("accessibility.typeaheadfind.linksonly", false);
|
|
|
|
pref("accessibility.typeaheadfind.flashBar", 1);
|
|
|
|
|
|
|
|
// Disable the default plugin for firefox
|
|
|
|
pref("plugin.default_plugin_disabled", true);
|
|
|
|
|
2005-06-16 22:24:34 +04:00
|
|
|
// plugin finder service url
|
2008-05-28 22:49:33 +04:00
|
|
|
pref("pfs.datasource.url", "https://pfs.mozilla.org/plugins/PluginFinderService.php?mimetype=%PLUGIN_MIMETYPE%&appID=%APP_ID%&appVersion=%APP_VERSION%&clientOS=%CLIENT_OS%&chromeLocale=%CHROME_LOCALE%&appRelease=%APP_RELEASE%");
|
2005-02-25 12:07:58 +03:00
|
|
|
|
2007-10-02 23:08:01 +04:00
|
|
|
// by default we show an infobar message when pages require plugins the user has not installed
|
|
|
|
pref("plugins.hide_infobar_for_missing_plugin", false);
|
|
|
|
|
2005-02-25 12:07:58 +03:00
|
|
|
#ifdef XP_WIN
|
|
|
|
pref("browser.preferences.instantApply", false);
|
|
|
|
#else
|
|
|
|
pref("browser.preferences.instantApply", true);
|
|
|
|
#endif
|
2007-12-15 03:20:49 +03:00
|
|
|
#ifdef XP_MACOSX
|
|
|
|
pref("browser.preferences.animateFadeIn", true);
|
|
|
|
#else
|
2005-02-25 12:07:58 +03:00
|
|
|
pref("browser.preferences.animateFadeIn", false);
|
2007-12-15 03:20:49 +03:00
|
|
|
#endif
|
2005-02-25 12:07:58 +03:00
|
|
|
|
|
|
|
pref("browser.download.show_plugins_in_list", true);
|
|
|
|
pref("browser.download.hide_plugins_without_extensions", true);
|
2005-08-02 07:29:11 +04:00
|
|
|
|
2005-08-06 11:34:17 +04:00
|
|
|
// Setting this pref to |true| forces BiDi UI menu items and keyboard shortcuts
|
|
|
|
// to be exposed. By default, only expose it for bidi-associated system locales.
|
|
|
|
pref("bidi.browser.ui", false);
|
2005-10-20 19:16:27 +04:00
|
|
|
|
|
|
|
// Backspace and Shift+Backspace behavior
|
|
|
|
// 0 goes Back/Forward
|
|
|
|
// 1 act like PgUp/PgDown
|
|
|
|
// 2 and other values, nothing
|
2006-04-13 11:11:35 +04:00
|
|
|
#ifdef UNIX_BUT_NOT_MAC
|
2006-12-07 22:46:47 +03:00
|
|
|
pref("browser.backspace_action", 2);
|
2006-04-13 11:11:35 +04:00
|
|
|
#else
|
2005-10-20 19:16:27 +04:00
|
|
|
pref("browser.backspace_action", 0);
|
2006-04-13 11:11:35 +04:00
|
|
|
#endif
|
2005-11-22 08:36:48 +03:00
|
|
|
|
2005-12-05 21:18:11 +03:00
|
|
|
// this will automatically enable inline spellchecking (if it is available) for
|
2006-07-29 04:04:40 +04:00
|
|
|
// editable elements in HTML
|
|
|
|
// 0 = spellcheck nothing
|
|
|
|
// 1 = check multi-line controls [default]
|
|
|
|
// 2 = check multi/single line controls
|
2006-02-09 06:50:53 +03:00
|
|
|
pref("layout.spellcheckDefault", 1);
|
2005-12-05 21:18:11 +03:00
|
|
|
|
2005-11-22 08:36:48 +03:00
|
|
|
pref("view_source.editor.path", "");
|
|
|
|
pref("view_source.editor.external", false);
|
2006-02-07 21:20:03 +03:00
|
|
|
|
2008-02-02 01:40:36 +03:00
|
|
|
pref("browser.send_pings", false);
|
2006-08-18 23:50:16 +04:00
|
|
|
|
2006-10-10 03:57:40 +04:00
|
|
|
/* initial web feed readers list */
|
2006-07-27 21:18:52 +04:00
|
|
|
pref("browser.contentHandlers.types.0.title", "chrome://browser-region/locale/region.properties");
|
|
|
|
pref("browser.contentHandlers.types.0.uri", "chrome://browser-region/locale/region.properties");
|
2006-05-03 08:52:32 +04:00
|
|
|
pref("browser.contentHandlers.types.0.type", "application/vnd.mozilla.maybe.feed");
|
2006-07-27 21:18:52 +04:00
|
|
|
pref("browser.contentHandlers.types.1.title", "chrome://browser-region/locale/region.properties");
|
|
|
|
pref("browser.contentHandlers.types.1.uri", "chrome://browser-region/locale/region.properties");
|
2006-05-03 08:52:32 +04:00
|
|
|
pref("browser.contentHandlers.types.1.type", "application/vnd.mozilla.maybe.feed");
|
2006-07-27 21:18:52 +04:00
|
|
|
pref("browser.contentHandlers.types.2.title", "chrome://browser-region/locale/region.properties");
|
|
|
|
pref("browser.contentHandlers.types.2.uri", "chrome://browser-region/locale/region.properties");
|
2006-05-03 08:52:32 +04:00
|
|
|
pref("browser.contentHandlers.types.2.type", "application/vnd.mozilla.maybe.feed");
|
2006-08-12 00:26:14 +04:00
|
|
|
pref("browser.contentHandlers.types.3.title", "chrome://browser-region/locale/region.properties");
|
|
|
|
pref("browser.contentHandlers.types.3.uri", "chrome://browser-region/locale/region.properties");
|
|
|
|
pref("browser.contentHandlers.types.3.type", "application/vnd.mozilla.maybe.feed");
|
|
|
|
pref("browser.contentHandlers.types.4.title", "chrome://browser-region/locale/region.properties");
|
|
|
|
pref("browser.contentHandlers.types.4.uri", "chrome://browser-region/locale/region.properties");
|
|
|
|
pref("browser.contentHandlers.types.4.type", "application/vnd.mozilla.maybe.feed");
|
|
|
|
pref("browser.contentHandlers.types.5.title", "chrome://browser-region/locale/region.properties");
|
|
|
|
pref("browser.contentHandlers.types.5.uri", "chrome://browser-region/locale/region.properties");
|
|
|
|
pref("browser.contentHandlers.types.5.type", "application/vnd.mozilla.maybe.feed");
|
2006-07-21 21:42:26 +04:00
|
|
|
|
|
|
|
pref("browser.feeds.handler", "ask");
|
2008-01-30 10:12:08 +03:00
|
|
|
pref("browser.videoFeeds.handler", "ask");
|
|
|
|
pref("browser.audioFeeds.handler", "ask");
|
2006-05-12 19:46:25 +04:00
|
|
|
|
2008-02-20 07:46:36 +03:00
|
|
|
// At startup, if the handler service notices that the version number in the
|
|
|
|
// region.properties file is newer than the version number in the handler
|
|
|
|
// service datastore, it will add any new handlers it finds in the prefs (as
|
|
|
|
// seeded by this file) to its datastore.
|
|
|
|
pref("gecko.handlerService.defaultHandlersVersion", "chrome://browser-region/locale/region.properties");
|
|
|
|
|
2007-09-07 02:20:52 +04:00
|
|
|
// The default set of web-based protocol handlers shown in the application
|
2008-02-20 07:46:36 +03:00
|
|
|
// selection dialog for webcal: ; I've arbitrarily picked 4 default handlers
|
|
|
|
// per protocol, but if some locale wants more than that (or defaults for some
|
|
|
|
// protocol not currently listed here), we should go ahead and add those.
|
|
|
|
|
|
|
|
// webcal
|
|
|
|
pref("gecko.handlerService.schemes.webcal.0.name", "chrome://browser-region/locale/region.properties");
|
|
|
|
pref("gecko.handlerService.schemes.webcal.0.uriTemplate", "chrome://browser-region/locale/region.properties");
|
|
|
|
pref("gecko.handlerService.schemes.webcal.1.name", "chrome://browser-region/locale/region.properties");
|
|
|
|
pref("gecko.handlerService.schemes.webcal.1.uriTemplate", "chrome://browser-region/locale/region.properties");
|
|
|
|
pref("gecko.handlerService.schemes.webcal.2.name", "chrome://browser-region/locale/region.properties");
|
|
|
|
pref("gecko.handlerService.schemes.webcal.2.uriTemplate", "chrome://browser-region/locale/region.properties");
|
|
|
|
pref("gecko.handlerService.schemes.webcal.3.name", "chrome://browser-region/locale/region.properties");
|
|
|
|
pref("gecko.handlerService.schemes.webcal.3.uriTemplate", "chrome://browser-region/locale/region.properties");
|
|
|
|
|
|
|
|
// mailto
|
|
|
|
pref("gecko.handlerService.schemes.mailto.0.name", "chrome://browser-region/locale/region.properties");
|
|
|
|
pref("gecko.handlerService.schemes.mailto.0.uriTemplate", "chrome://browser-region/locale/region.properties");
|
|
|
|
pref("gecko.handlerService.schemes.mailto.1.name", "chrome://browser-region/locale/region.properties");
|
|
|
|
pref("gecko.handlerService.schemes.mailto.1.uriTemplate", "chrome://browser-region/locale/region.properties");
|
|
|
|
pref("gecko.handlerService.schemes.mailto.2.name", "chrome://browser-region/locale/region.properties");
|
|
|
|
pref("gecko.handlerService.schemes.mailto.2.uriTemplate", "chrome://browser-region/locale/region.properties");
|
|
|
|
pref("gecko.handlerService.schemes.mailto.3.name", "chrome://browser-region/locale/region.properties");
|
|
|
|
pref("gecko.handlerService.schemes.mailto.3.uriTemplate", "chrome://browser-region/locale/region.properties");
|
|
|
|
|
2007-09-07 02:20:52 +04:00
|
|
|
|
2008-02-09 02:04:30 +03:00
|
|
|
// By default, we don't want protocol/content handlers to be registered from a different host, see bug 402287
|
|
|
|
pref("gecko.handlerService.allowRegisterFromDifferentHost", false);
|
|
|
|
|
2006-05-12 19:46:25 +04:00
|
|
|
#ifdef MOZ_SAFE_BROWSING
|
2008-02-09 07:50:16 +03:00
|
|
|
// Safe browsing does nothing unless this pref is set
|
2006-05-12 19:46:25 +04:00
|
|
|
pref("browser.safebrowsing.enabled", true);
|
|
|
|
|
2007-08-10 02:11:23 +04:00
|
|
|
// Prevent loading of pages identified as malware
|
|
|
|
pref("browser.safebrowsing.malware.enabled", true);
|
|
|
|
|
2006-06-08 00:26:01 +04:00
|
|
|
// Non-enhanced mode (local url lists) URL list to check for updates
|
2008-02-27 06:49:29 +03:00
|
|
|
pref("browser.safebrowsing.provider.0.updateURL", "http://safebrowsing.clients.google.com/safebrowsing/downloads?client={moz:client}&appver={moz:version}&pver=2.1");
|
2006-06-08 00:26:01 +04:00
|
|
|
|
|
|
|
pref("browser.safebrowsing.dataProvider", 0);
|
2006-05-12 19:46:25 +04:00
|
|
|
|
2006-06-08 00:26:01 +04:00
|
|
|
// Does the provider name need to be localizable?
|
|
|
|
pref("browser.safebrowsing.provider.0.name", "Google");
|
2008-02-27 06:49:29 +03:00
|
|
|
pref("browser.safebrowsing.provider.0.lookupURL", "http://safebrowsing.clients.google.com/safebrowsing/lookup?sourceid=firefox-antiphish&features=TrustRank&client={moz:client}&appver={moz:version}&");
|
2008-02-27 11:51:05 +03:00
|
|
|
pref("browser.safebrowsing.provider.0.keyURL", "https://sb-ssl.google.com/safebrowsing/newkey?client={moz:client}&appver={moz:version}&pver=2.1");
|
2008-02-27 06:49:29 +03:00
|
|
|
pref("browser.safebrowsing.provider.0.reportURL", "http://safebrowsing.clients.google.com/safebrowsing/report?");
|
|
|
|
pref("browser.safebrowsing.provider.0.gethashURL", "http://safebrowsing.clients.google.com/safebrowsing/gethash?client={moz:client}&appver={moz:version}&pver=2.1");
|
2006-06-08 00:26:01 +04:00
|
|
|
|
2006-09-08 05:24:03 +04:00
|
|
|
// privacy policy -- Both url and fallbackurl must exist, although they may
|
|
|
|
// point to the same file. fallbackurl must be a chrome url
|
|
|
|
pref("browser.safebrowsing.provider.0.privacy.url", "http://www.google.com/tools/firefox/firefox_privacy.html?hl=%LOCALE%");
|
|
|
|
pref("browser.safebrowsing.provider.0.privacy.fallbackurl", "chrome://browser/content/preferences/phishEULA.xhtml");
|
2006-08-18 09:22:35 +04:00
|
|
|
|
2006-06-08 00:26:01 +04:00
|
|
|
// HTML report pages
|
2006-08-18 23:50:16 +04:00
|
|
|
pref("browser.safebrowsing.provider.0.reportGenericURL", "http://{moz:locale}.phish-generic.mozilla.com/?hl={moz:locale}");
|
|
|
|
pref("browser.safebrowsing.provider.0.reportErrorURL", "http://{moz:locale}.phish-error.mozilla.com/?hl={moz:locale}");
|
|
|
|
pref("browser.safebrowsing.provider.0.reportPhishURL", "http://{moz:locale}.phish-report.mozilla.com/?hl={moz:locale}");
|
2006-08-19 23:32:19 +04:00
|
|
|
|
|
|
|
// FAQ URL
|
2006-08-22 03:30:32 +04:00
|
|
|
pref("browser.safebrowsing.warning.infoURL", "http://%LOCALE%.www.mozilla.com/%LOCALE%/firefox/phishing-protection/");
|
2007-10-29 21:29:18 +03: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");
|
2008-02-27 08:51:28 +03:00
|
|
|
|
|
|
|
// The number of random entries to send with a gethash request.
|
|
|
|
pref("urlclassifier.gethashnoise", 4);
|
2008-03-07 22:51:26 +03:00
|
|
|
|
2008-04-16 02:39:45 +04: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);
|
|
|
|
|
2008-05-02 13:55:09 +04:00
|
|
|
// Maximum size of the sqlite3 cache during an update, in bytes
|
2008-05-03 01:04:19 +04:00
|
|
|
#ifdef MOZ_WIDGET_GTK2
|
2008-05-02 13:55:09 +04:00
|
|
|
pref("urlclassifier.updatecachemax", 104857600);
|
|
|
|
#else
|
|
|
|
pref("urlclassifier.updatecachemax", -1);
|
|
|
|
#endif
|
|
|
|
|
2008-03-07 22:51:26 +03:00
|
|
|
// URL for checking the reason for a malware warning.
|
2008-04-23 00:00:20 +04:00
|
|
|
pref("browser.safebrowsing.malware.reportURL", "http://safebrowsing.clients.google.com/safebrowsing/diagnostic?client=%NAME%&hl=%LOCALE%&site=");
|
2008-03-07 22:51:26 +03:00
|
|
|
|
2006-05-12 19:46:25 +04:00
|
|
|
#endif
|
2006-09-13 11:55:52 +04:00
|
|
|
|
2008-05-05 04:53:42 +04:00
|
|
|
// defaults to true on Windows and Mac, because the installer shows this
|
|
|
|
#ifdef XP_MACOSX
|
|
|
|
pref("browser.EULA.3.accepted", true);
|
|
|
|
#elifdef XP_WIN
|
|
|
|
pref("browser.EULA.3.accepted", true);
|
|
|
|
#else
|
2008-05-07 01:47:34 +04:00
|
|
|
pref("browser.EULA.3.accepted", false);
|
2008-05-05 04:53:42 +04:00
|
|
|
#endif
|
2006-09-13 11:55:52 +04:00
|
|
|
|
|
|
|
// if we rev the EULA again, we should bump this so users agree to the new EULA
|
2008-05-05 04:53:42 +04:00
|
|
|
pref("browser.EULA.version", 3);
|
2007-01-05 20:09:56 +03:00
|
|
|
|
2008-05-08 19:24:23 +04:00
|
|
|
#ifdef DEBUG
|
|
|
|
pref("browser.EULA.override", true);
|
|
|
|
#endif
|
|
|
|
|
2007-10-06 03:28:28 +04:00
|
|
|
pref("browser.sessionstore.enabled", true);
|
2007-01-05 20:09:56 +03:00
|
|
|
pref("browser.sessionstore.resume_from_crash", true);
|
|
|
|
pref("browser.sessionstore.resume_session_once", false);
|
2008-02-23 12:32:09 +03:00
|
|
|
|
2007-01-05 20:09:56 +03:00
|
|
|
// minimal interval between two save operations in milliseconds
|
|
|
|
pref("browser.sessionstore.interval", 10000);
|
|
|
|
// maximum amount of POSTDATA to be saved in bytes per history entry (-1 = all of it)
|
|
|
|
// (NB: POSTDATA will be saved either entirely or not at all)
|
|
|
|
pref("browser.sessionstore.postdata", 0);
|
|
|
|
// on which sites to save text data, POSTDATA and cookies
|
|
|
|
// 0 = everywhere, 1 = unencrypted sites, 2 = nowhere
|
|
|
|
pref("browser.sessionstore.privacy_level", 1);
|
|
|
|
// how many tabs can be reopened (per window)
|
|
|
|
pref("browser.sessionstore.max_tabs_undo", 10);
|
2007-02-08 16:15:50 +03:00
|
|
|
|
|
|
|
// allow META refresh by default
|
|
|
|
pref("accessibility.blockautorefresh", false);
|
2007-05-03 12:56:45 +04:00
|
|
|
|
2007-12-05 04:56:56 +03:00
|
|
|
// If true, will migrate uri post-data annotations to
|
|
|
|
// bookmark post-data annotations (bug 398914)
|
|
|
|
// XXX to be removed after beta 2 (bug 391419)
|
|
|
|
pref("browser.places.migratePostDataAnnotations", true);
|
|
|
|
|
2008-02-27 07:48:53 +03:00
|
|
|
// If true, will update the Smart Bookmarks uri for
|
|
|
|
// recent tags (bug 385245). Useful just for FX3 beta users.
|
|
|
|
pref("browser.places.updateRecentTagsUri", true);
|
|
|
|
|
2008-01-25 20:11:14 +03:00
|
|
|
// the (maximum) number of the recent visits to sample
|
|
|
|
// when calculating frecency
|
|
|
|
pref("places.frecency.numVisits", 10);
|
|
|
|
|
2008-01-30 08:17:48 +03:00
|
|
|
// Number of records to update frecency for when idle.
|
|
|
|
pref("places.frecency.numCalcOnIdle", 50);
|
|
|
|
|
|
|
|
// Number of records to update frecency for when migrating from
|
|
|
|
// a pre-frecency build.
|
|
|
|
pref("places.frecency.numCalcOnMigrate", 50);
|
|
|
|
|
2008-01-25 20:11:14 +03:00
|
|
|
// Perform frecency recalculation after this amount of idle, repeating.
|
|
|
|
// A value of zero disables updating of frecency on idle.
|
|
|
|
// Default is 1 minute (60000ms).
|
|
|
|
pref("places.frecency.updateIdleTime", 60000);
|
|
|
|
|
|
|
|
// buckets (in days) for frecency calculation
|
|
|
|
pref("places.frecency.firstBucketCutoff", 4);
|
|
|
|
pref("places.frecency.secondBucketCutoff", 14);
|
|
|
|
pref("places.frecency.thirdBucketCutoff", 31);
|
|
|
|
pref("places.frecency.fourthBucketCutoff", 90);
|
|
|
|
|
|
|
|
// weights for buckets for frecency calculations
|
|
|
|
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);
|
|
|
|
|
|
|
|
// bonus (in percent) for visit transition types for frecency calculations
|
|
|
|
pref("places.frecency.embedVisitBonus", 0);
|
2008-02-21 04:38:38 +03:00
|
|
|
pref("places.frecency.linkVisitBonus", 100);
|
2008-03-22 09:57:23 +03:00
|
|
|
pref("places.frecency.typedVisitBonus", 2000);
|
2008-02-21 04:38:38 +03:00
|
|
|
pref("places.frecency.bookmarkVisitBonus", 150);
|
2008-01-25 20:11:14 +03:00
|
|
|
pref("places.frecency.downloadVisitBonus", 0);
|
|
|
|
pref("places.frecency.permRedirectVisitBonus", 0);
|
|
|
|
pref("places.frecency.tempRedirectVisitBonus", 0);
|
|
|
|
pref("places.frecency.defaultVisitBonus", 0);
|
|
|
|
|
|
|
|
// bonus (in percent) for place types for frecency calculations
|
|
|
|
pref("places.frecency.unvisitedBookmarkBonus", 140);
|
|
|
|
pref("places.frecency.unvisitedTypedBonus", 200);
|
|
|
|
|
2007-11-24 00:59:10 +03:00
|
|
|
// Controls behavior of the "Add Exception" dialog launched from SSL error pages
|
|
|
|
// 0 - don't pre-populate anything
|
|
|
|
// 1 - pre-populate site URL, but don't fetch certificate
|
|
|
|
// 2 - pre-populate site URL and pre-fetch certificate
|
|
|
|
pref("browser.ssl_override_behavior", 1);
|
2007-12-18 08:29:38 +03:00
|
|
|
|
2008-01-30 07:21:54 +03:00
|
|
|
// Controls the display of domain in the identity box for SSL connections.
|
|
|
|
// 0 - do not show domain
|
|
|
|
// 1 - show effectiveTLD + 1 (e.g. mozilla.org)
|
|
|
|
// 2 - show full domain (e.g. bugzilla.mozilla.org)
|
|
|
|
pref("browser.identity.ssl_domain_display", 0);
|
|
|
|
|
2008-02-22 09:34:16 +03:00
|
|
|
// True if the user should be prompted when a web application supports
|
|
|
|
// offline apps.
|
|
|
|
pref("browser.offline-apps.notify", true);
|
|
|
|
|
2008-02-13 14:00:45 +03:00
|
|
|
// if true, use full page zoom instead of text zoom
|
|
|
|
pref("browser.zoom.full", true);
|
|
|
|
|
2008-02-27 02:05:53 +03:00
|
|
|
// Whether or not to save and restore zoom levels on a per-site basis.
|
|
|
|
pref("browser.zoom.siteSpecific", true);
|
|
|
|
|
2007-12-18 08:29:38 +03:00
|
|
|
// replace newlines with spaces when pasting into <input type="text"> fields
|
|
|
|
pref("editor.singleLine.pasteNewlines", 2);
|
|
|
|
|
2008-01-25 10:24:33 +03:00
|
|
|
// The breakpad report server to link to in about:crashes
|
|
|
|
pref("breakpad.reportURL", "http://crash-stats.mozilla.com/report/index/");
|
2008-03-24 20:18:39 +03:00
|
|
|
|
|
|
|
// base URL for web-based support pages
|
|
|
|
pref("app.support.baseURL", "http://support.mozilla.com/1/%APP%/%VERSION%/%OS%/%LOCALE%/");
|