mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 04:27:37 +00:00
428 lines
22 KiB
XML
428 lines
22 KiB
XML
<?xml version="1.0"?>
|
|
|
|
# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
# 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 the Firefox Preferences System.
|
|
#
|
|
# The Initial Developer of the Original Code is Ben Goodger.
|
|
# Portions created by the Initial Developer are Copyright (C) 2005
|
|
# the Initial Developer. All Rights Reserved.
|
|
#
|
|
# Contributor(s):
|
|
# Ben Goodger <ben@mozilla.org>
|
|
#
|
|
# 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 *****
|
|
|
|
<!DOCTYPE overlay [
|
|
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
|
|
<!ENTITY % privacyDTD SYSTEM "chrome://browser/locale/preferences/privacy.dtd">
|
|
%brandDTD;
|
|
%privacyDTD;
|
|
]>
|
|
|
|
<overlay id="PrivacyPaneOverlay"
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
|
|
<prefpane id="panePrivacy" onpaneload="gPrivacyPane.init();"
|
|
helpURI="chrome://browser/locale/help/help.rdf">
|
|
|
|
<preferences id="privacyPreferences">
|
|
<preference id="browser.history_expire_days" name="browser.history_expire_days" type="int"/>
|
|
<preference id="browser.formfill.enable" name="browser.formfill.enable" type="bool"/>
|
|
<preference id="signon.rememberSignons" name="signon.rememberSignons" type="bool"/>
|
|
<preference id="browser.download.manager.retention" name="browser.download.manager.retention" type="int"/>
|
|
<preference id="network.cookie.cookieBehavior" name="network.cookie.cookieBehavior" type="int" onchange="gPrivacyPane.enableCookiesChanged();"/>
|
|
<preference id="network.cookie.blockFutureCookies" name="network.cookie.blockFutureCookies" type="bool"/>
|
|
<preference id="network.cookie.lifetimePolicy" name="network.cookie.lifetimePolicy" type="int"/>
|
|
<preference id="browser.cache.disk.capacity" name="browser.cache.disk.capacity" type="int"/>
|
|
<preference id="browser.preferences.privacy.selectedTabIndex"
|
|
name="browser.preferences.privacy.selectedTabIndex"
|
|
type="int"/>
|
|
<preference id="pref.privacy.disable_button.clear_history"
|
|
name="pref.privacy.disable_button.clear_history"
|
|
type="bool"/>
|
|
<preference id="pref.privacy.disable_button.clear_formdata"
|
|
name="pref.privacy.disable_button.clear_formdata"
|
|
type="bool"/>
|
|
<preference id="pref.privacy.disable_button.cookie_exceptions"
|
|
name="pref.privacy.disable_button.cookie_exceptions"
|
|
type="bool"/>
|
|
<preference id="pref.privacy.disable_button.view_cookies"
|
|
name="pref.privacy.disable_button.view_cookies"
|
|
type="bool"/>
|
|
<preference id="pref.privacy.disable_button.clear_cookies"
|
|
name="pref.privacy.disable_button.clear_cookies"
|
|
type="bool"/>
|
|
<preference id="pref.privacy.disable_button.clear_cache"
|
|
name="pref.privacy.disable_button.clear_cache"
|
|
type="bool"/>
|
|
<preference id="pref.privacy.disable_button.view_passwords"
|
|
name="pref.privacy.disable_button.view_passwords"
|
|
type="bool"/>
|
|
<preference id="pref.privacy.disable_button.set_master_password"
|
|
name="pref.privacy.disable_button.set_master_password"
|
|
type="bool"/>
|
|
<preference id="pref.privacy.disable_button.remove_master_password"
|
|
name="pref.privacy.disable_button.remove_master_password"
|
|
type="bool"/>
|
|
</preferences>
|
|
|
|
<stringbundle id="bundlePreferences" src="chrome://browser/locale/preferences/preferences.properties"/>
|
|
|
|
<script type="application/x-javascript" src="chrome://browser/content/sanitize.js"/>
|
|
<script type="application/x-javascript" src="chrome://browser/content/preferences/privacy.js"/>
|
|
|
|
<description>&privacy.intro;</description>
|
|
<separator class="thin"/>
|
|
<tabbox id="privacyPrefs" flex="1"
|
|
onselect="gPrivacyPane.tabSelectionChanged(event);">
|
|
<tabs>
|
|
<tab label="&itemHistory.label;" helpTopic="prefs-history"/>
|
|
<tab label="&itemFormData.label;" helpTopic="prefs-saved-forms"/>
|
|
<tab label="&itemPasswords.label;" helpTopic="prefs-passwords"/>
|
|
<tab label="&itemDownloads.label;" helpTopic="prefs-download-history"/>
|
|
<tab label="&itemCookies.label;" helpTopic="prefs-cookies"/>
|
|
<tab label="&itemCache.label;" helpTopic="prefs-cache"/>
|
|
</tabs>
|
|
<tabpanels flex="1">
|
|
<tabpanel orient="vertical">
|
|
<hbox align="center">
|
|
<label control="historyDays" accesskey="&rememberPages.accesskey;">&rememberPages.label;</label>
|
|
<textbox id="historyDays" size="2" preference="browser.history_expire_days"/>
|
|
<label>&rememberDays.label;</label>
|
|
</hbox>
|
|
<separator flex="1"/>
|
|
<hbox pack="end">
|
|
<button icon="clear" label="&clearHistory.label;"
|
|
accesskey="&clearHistory.accesskey;"
|
|
oncommand="gPrivacyPane.clear(this);" item="history"
|
|
preference="pref.privacy.disable_button.clear_history"/>
|
|
</hbox>
|
|
</tabpanel>
|
|
<tabpanel orient="vertical">
|
|
<description>&savedFormData.intro;</description>
|
|
<vbox align="start">
|
|
<checkbox id="saveFormHistory" preference="browser.formfill.enable"
|
|
label="&enableFormFill.label;" accesskey="&enableFormFill.accesskey;"/>
|
|
</vbox>
|
|
<separator flex="1"/>
|
|
<hbox pack="end">
|
|
<button icon="clear" label="&clearFormData.label;"
|
|
accesskey="&clearFormData.accesskey;"
|
|
oncommand="gPrivacyPane.clear(this);" item="formdata"
|
|
preference="pref.privacy.disable_button.clear_formdata"/>
|
|
</hbox>
|
|
</tabpanel>
|
|
<tabpanel orient="vertical">
|
|
<description>&savedPasswords.intro;</description>
|
|
<hbox>
|
|
<checkbox id="savePasswords"
|
|
label="&enablePasswords.label;" accesskey="&enablePasswords.accesskey;"
|
|
preference="signon.rememberSignons"/>
|
|
</hbox>
|
|
<separator/>
|
|
<hbox align="start">
|
|
<description flex="1">&masterPassword.intro;</description>
|
|
<!-- XXXben - check for keychain access use -->
|
|
<vbox>
|
|
<button id="setMasterPassword"
|
|
label="&setMasterPassword.label;" accesskey="&setMasterPassword.accesskey;"
|
|
oncommand="gPrivacyPane.changeMasterPassword();"
|
|
preference="pref.privacy.disable_button.set_master_password"/>
|
|
<button id="removeMasterPassword"
|
|
label="&removeMasterPassword.label;" accesskey="&removeMasterPassword.accesskey;"
|
|
oncommand="gPrivacyPane.removeMasterPassword();"
|
|
preference="pref.privacy.disable_button.remove_master_password"/>
|
|
</vbox>
|
|
</hbox>
|
|
<separator flex="1"/>
|
|
<hbox>
|
|
<button label="&viewPasswords.label;" accesskey="&viewPasswords.accesskey;"
|
|
oncommand="gPrivacyPane.viewPasswords();"
|
|
preference="pref.privacy.disable_button.view_passwords"/>
|
|
</hbox>
|
|
</tabpanel>
|
|
<tabpanel orient="vertical">
|
|
<description>&downloadManager.intro;</description>
|
|
<separator class="thin"/>
|
|
<hbox align="center">
|
|
<label accesskey="&downloadsRetentionPolicy.accesskey;"
|
|
control="downloadsRetentionPolicy">&downloadsRetentionPolicy.label;</label>
|
|
<menulist id="downloadsRetentionPolicy"
|
|
preference="browser.download.manager.retention">
|
|
<menupopup>
|
|
<menuitem value="0" label="&downloadsRemoveImmediately.label;"/>
|
|
<menuitem value="1" label="&downloadsRemoveExit.label;"/>
|
|
<menuitem value="2" label="&downloadsRemoveManually.label;"/>
|
|
</menupopup>
|
|
</menulist>
|
|
</hbox>
|
|
<separator flex="1"/>
|
|
<hbox>
|
|
<button label="&viewDownloads.label;" accesskey="&viewDownloads.accesskey;"
|
|
oncommand="gPrivacyPane.viewDownloads();"/>
|
|
<spring flex="1"/>
|
|
<button icon="clear" label="&clearDownloads.label;"
|
|
accesskey="&clearDownloads.accesskey;"
|
|
oncommand="gPrivacyPane.clear(this);" item="downloads"/>
|
|
</hbox>
|
|
</tabpanel>
|
|
<tabpanel orient="vertical">
|
|
<!-- Cookies are considered a distinct "privacy" item because they are
|
|
created without user interaction, unlike Software Installation,
|
|
Popup and Image whitelists -->
|
|
<vbox>
|
|
<description>&cookies.intro;</description>
|
|
<hbox>
|
|
<checkbox id="enableCookies" preference="network.cookie.cookieBehavior"
|
|
label="&enableCookies.label;" accesskey="&enableCookies.accesskey;"
|
|
onsyncfrompreference="return gPrivacyPane.readEnableCookiesPref();"
|
|
onsynctopreference="return gPrivacyPane.writeEnableCookiesPref();"/>
|
|
<button id="cookieExceptions" oncommand="gPrivacyPane.viewCookieExceptions();"
|
|
label="&exceptions.label;" accesskey="&cookieExceptions.accesskey;"
|
|
preference="pref.privacy.disable_button.cookie_exceptions"/>
|
|
</hbox>
|
|
<vbox align="start">
|
|
<checkbox id="enableCookiesForOriginating" class="indent"
|
|
label="&enableCookiesForOriginating.label;"
|
|
accesskey="&enableCookiesForOriginating.accesskey;"
|
|
preference="network.cookie.cookieBehavior"
|
|
onsyncfrompreference="return gPrivacyPane.readEnableRestrictedPref();"
|
|
onsynctopreference="return gPrivacyPane.writeEnableCookiesPref();"/>
|
|
<checkbox id="enableCookiesNotRemoved" class="indent"
|
|
label="&enableCookiesNotRemoved.label;"
|
|
accesskey="&enableCookiesNotRemoved.accesskey;"
|
|
preference="network.cookie.blockFutureCookies"/>
|
|
<separator class="thin"/>
|
|
<hbox align="center" class="indent">
|
|
<label control="networkCookieLifetime"
|
|
accesskey="&keepCookies.accesskey;">&keepCookies.label;</label>
|
|
<menulist id="networkCookieLifetime"
|
|
preference="network.cookie.lifetimePolicy">
|
|
<menupopup>
|
|
<menuitem value="0" label="&acceptNormally.label;"/>
|
|
<menuitem value="2" label="&acceptForSession.label;"/>
|
|
<menuitem value="1" label="&askAboutCookies.label;"/>
|
|
</menupopup>
|
|
</menulist>
|
|
</hbox>
|
|
</vbox>
|
|
</vbox>
|
|
<separator flex="1"/>
|
|
<separator/>
|
|
<hbox>
|
|
<button label="&viewCookies.label;" accesskey="&viewCookies.accesskey;"
|
|
oncommand="gPrivacyPane.viewCookies();"
|
|
preference="pref.privacy.disable_button.view_cookies"/>
|
|
<spring flex="1"/>
|
|
<button icon="clear" label="&clearCookies.label;"
|
|
accesskey="&clearCookies.accesskey;"
|
|
oncommand="gPrivacyPane.clear(this);" item="cookies"
|
|
preference="pref.privacy.disable_button.clear_cookies"/>
|
|
</hbox>
|
|
</tabpanel>
|
|
<tabpanel orient="vertical">
|
|
<description>&cache.intro;</description>
|
|
<hbox align="center">
|
|
<label accesskey="&cacheUseUpTo.accesskey;" control="cacheSize">&cacheUseUpTo.label;</label>
|
|
<textbox id="cacheSize" size="2" preference="browser.cache.disk.capacity"
|
|
onsyncfrompreference="return gPrivacyPane.readCacheSizePref();"
|
|
onsynctopreference="return gPrivacyPane.writeCacheSizePref();"/>
|
|
<label>&cacheSize.label;</label>
|
|
</hbox>
|
|
<separator flex="1"/>
|
|
<hbox pack="end">
|
|
<button icon="clear" label="&clearCache.label;"
|
|
accesskey="&clearCache.accesskey;"
|
|
oncommand="gPrivacyPane.clear(this);" item="cache"
|
|
preference="pref.privacy.disable_button.clear_cache"/>
|
|
</hbox>
|
|
</tabpanel>
|
|
</tabpanels>
|
|
</tabbox>
|
|
#if 0
|
|
<hbox>
|
|
<listbox id="itemList" seltype="single"
|
|
onselect="gPrivacyPane.onItemSelect();"
|
|
style="width: 10em;">
|
|
<listitem label="&itemHistory.label;"/>
|
|
<listitem label="&itemFormData.label;"/>
|
|
<listitem label="&itemPasswords.label;"/>
|
|
<listitem label="&itemDownloads.label;"/>
|
|
<listitem label="&itemCookies.label;"/>
|
|
<listitem label="&itemCache.label;"/>
|
|
</listbox>
|
|
<deck id="itemPreferences" flex="1">
|
|
<groupbox orient="vertical" flex="1">
|
|
<caption label="&itemHistory.label;"/>
|
|
<hbox align="center">
|
|
<label control="historyDays" accesskey="&rememberPages.accesskey;">&rememberPages.label;</label>
|
|
<textbox id="historyDays" size="2" preference="browser.history_expire_days"/>
|
|
<label>&rememberDays.label;</label>
|
|
</hbox>
|
|
<separator flex="1"/>
|
|
<hbox pack="end">
|
|
<button label="&clearHistory.label;" accesskey="&clearHistory.accesskey;"
|
|
oncommand="gPrivacyPane.clear(this);" item="history"/>
|
|
</hbox>
|
|
</groupbox>
|
|
<groupbox orient="vertical" flex="1">
|
|
<caption label="&itemFormData.label;"/>
|
|
<description>&savedFormData.intro;</description>
|
|
<vbox align="start">
|
|
<checkbox id="saveFormHistory" preference="browser.formfill.enable"
|
|
label="&enableFormFill.label;" accesskey="&enableFormFill.accesskey;"/>
|
|
</vbox>
|
|
<separator flex="1"/>
|
|
<hbox pack="end">
|
|
<button label="&clearFormData.label;" accesskey="&clearFormData.accesskey;"
|
|
oncommand="gPrivacyPane.clear(this);" item="formdata"/>
|
|
</hbox>
|
|
</groupbox>
|
|
<groupbox orient="vertical" flex="1">
|
|
<caption label="&itemPasswords.label;"/>
|
|
<description>&savedPasswords.intro;</description>
|
|
<hbox align="center">
|
|
<checkbox id="savePasswords"
|
|
label="&enablePasswords.label;" accesskey="&enablePasswords.accesskey;"
|
|
preference="signon.rememberSignons" flex="1"/>
|
|
<!-- XXXben - check for keychain access use -->
|
|
<button id="setMasterPassword"
|
|
label="&setMasterPassword.label;" accesskey="&setMasterPassword.accesskey;"
|
|
oncommand="gPrivacyPane.changeMasterPassword();"/>
|
|
</hbox>
|
|
<separator flex="1"/>
|
|
<hbox>
|
|
<button label="&viewPasswords.label;" accesskey="&viewPasswords.accesskey;"
|
|
oncommand="gPrivacyPane.viewPasswords();"/>
|
|
</hbox>
|
|
</groupbox>
|
|
<groupbox orient="vertical" flex="1">
|
|
<caption label="&itemDownloads.label;"/>
|
|
<description>&downloadManager.intro;</description>
|
|
<label accesskey="&downloadsRetentionPolicy.accesskey;"
|
|
control="downloadsRetentionPolicy">&downloadsRetentionPolicy.label;</label>
|
|
<hbox>
|
|
<menulist id="downloadsRetentionPolicy"
|
|
preference="browser.download.manager.retention">
|
|
<menupopup>
|
|
<menuitem value="0" label="&downloadsRemoveImmediately.label;"/>
|
|
<menuitem value="1" label="&downloadsRemoveExit.label;"/>
|
|
<menuitem value="2" label="&downloadsRemoveManually.label;"/>
|
|
</menupopup>
|
|
</menulist>
|
|
</hbox>
|
|
<separator flex="1"/>
|
|
<hbox>
|
|
<button label="&viewDownloads.label;" accesskey="&viewDownloads.accesskey;"
|
|
oncommand="gPrivacyPane.viewDownloads();"/>
|
|
<spring flex="1"/>
|
|
<button label="&clearDownloads.label;" accesskey="&clearDownloads.accesskey;"
|
|
oncommand="gPrivacyPane.clear(this);" item="downloads"/>
|
|
</hbox>
|
|
</groupbox>
|
|
<groupbox orient="vertical" flex="1">
|
|
<!-- Cookies are considered a distinct "privacy" item because they are
|
|
created without user interaction, unlike Software Installation,
|
|
Popup and Image whitelists -->
|
|
<caption label="&itemCookies.label;"/>
|
|
<vbox>
|
|
<description>&cookies.intro;</description>
|
|
<hbox>
|
|
<checkbox id="enableCookies" preference="network.cookie.cookieBehavior"
|
|
label="&enableCookies.label;" accesskey="&enableCookies.accesskey;"
|
|
onsyncfrompreference="return gPrivacyPane.readEnableCookiesPref();"
|
|
onsynctopreference="return gPrivacyPane.writeEnableCookiesPref();"/>
|
|
<spring flex="1"/>
|
|
<button id="cookieExceptions" oncommand="gPrivacyPane.viewCookieExceptions();"
|
|
label="&exceptions.label;" accesskey="&cookieExceptions.accesskey;"/>
|
|
</hbox>
|
|
<vbox align="start">
|
|
<checkbox id="enableCookiesForOriginating" class="indent"
|
|
label="&enableCookiesForOriginating.label;"
|
|
accesskey="&enableCookiesForOriginating.accesskey;"
|
|
preference="network.cookie.cookieBehavior"
|
|
onsyncfrompreference="return gPrivacyPane.readEnableRestrictedPref();"
|
|
onsynctopreference="return gPrivacyPane.writeEnableCookiesPref();"/>
|
|
<checkbox id="enableCookiesNotRemoved" class="indent"
|
|
label="&enableCookiesNotRemoved.label;"
|
|
accesskey="&enableCookiesNotRemoved.accesskey;"
|
|
preference="network.cookie.blockFutureCookies"/>
|
|
<separator class="thin"/>
|
|
<hbox align="center" class="indent">
|
|
<label control="networkCookieLifetime"
|
|
accesskey="&keepCookies.accesskey;">&keepCookies.label;</label>
|
|
<menulist id="networkCookieLifetime"
|
|
preference="network.cookie.lifetimePolicy">
|
|
<menupopup>
|
|
<menuitem value="0" label="&acceptNormally.label;"/>
|
|
<menuitem value="2" label="&acceptForSession.label;"/>
|
|
<menuitem value="1" label="&askAboutCookies.label;"/>
|
|
</menupopup>
|
|
</menulist>
|
|
</hbox>
|
|
</vbox>
|
|
</vbox>
|
|
<separator flex="1"/>
|
|
<separator/>
|
|
<hbox>
|
|
<button label="&viewCookies.label;" accesskey="&viewCookies.accesskey;"
|
|
oncommand="gPrivacyPane.viewCookies();"/>
|
|
<spring flex="1"/>
|
|
<button label="&clearCookies.label;" accesskey="&clearCookies.accesskey;"
|
|
oncommand="gPrivacyPane.clear(this);" item="cookies"/>
|
|
</hbox>
|
|
</groupbox>
|
|
<groupbox orient="vertical" flex="1">
|
|
<caption label="&itemCache.label;"/>
|
|
<description>&cache.intro;</description>
|
|
<hbox align="center">
|
|
<label accesskey="&cacheUseUpTo.accesskey;" control="cacheSize">&cacheUseUpTo.label;</label>
|
|
<textbox id="cacheSize" size="2" preference="browser.cache.disk.capacity"
|
|
onsyncfrompreference="return gPrivacyPane.readCacheSizePref();"
|
|
onsynctopreference="return gPrivacyPane.writeCacheSizePref();"/>
|
|
<label>&cacheSize.label;</label>
|
|
</hbox>
|
|
<separator flex="1"/>
|
|
<hbox pack="end">
|
|
<button label="&clearCache.label;" accesskey="&clearCache.accesskey;"
|
|
oncommand="gPrivacyPane.clear(this);" item="cache"/>
|
|
</hbox>
|
|
</groupbox>
|
|
</deck>
|
|
</hbox>
|
|
#endif
|
|
<separator class="thin"/>
|
|
<hbox align="center">
|
|
<button label="&sanitizeSettings.label;" accesskey="&sanitizeSettings.accesskey;"
|
|
oncommand="gPrivacyPane.showSanitizeSettings();"/>
|
|
<description flex="1">&sanitize.intro;</description>
|
|
</hbox>
|
|
<separator/>
|
|
</prefpane>
|
|
|
|
</overlay>
|