зеркало из https://github.com/mozilla/gecko-dev.git
202 строки
8.8 KiB
XML
202 строки
8.8 KiB
XML
<?xml version="1.0"?>
|
|
|
|
# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
# ***** 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 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>
|
|
# Jeff Walden <jwalden+code@mit.edu>
|
|
#
|
|
# 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();"
|
|
helpTopic="prefs-privacy">
|
|
|
|
<preferences id="privacyPreferences">
|
|
|
|
<!-- XXX button prefs -->
|
|
<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"/>
|
|
|
|
<!-- History -->
|
|
<preference id="browser.history_expire_days"
|
|
name="browser.history_expire_days"
|
|
type="int"/>
|
|
<preference id="browser.history_expire_days.mirror"
|
|
name="browser.history_expire_days.mirror"
|
|
type="int"/>
|
|
<preference id="browser.history_expire_days_min"
|
|
name="browser.history_expire_days_min"
|
|
type="int"/>
|
|
<preference id="browser.formfill.enable"
|
|
name="browser.formfill.enable"
|
|
type="bool"/>
|
|
<preference id="browser.download.manager.retention"
|
|
name="browser.download.manager.retention"
|
|
type="int"/>
|
|
|
|
<!-- Cookies -->
|
|
<preference id="network.cookie.cookieBehavior" name="network.cookie.cookieBehavior" type="int"/>
|
|
<preference id="network.cookie.lifetimePolicy" name="network.cookie.lifetimePolicy" type="int"/>
|
|
<preference id="network.cookie.blockFutureCookies" name="network.cookie.blockFutureCookies" type="bool"/>
|
|
|
|
<!-- Clear Private Data -->
|
|
<preference id="privacy.sanitize.sanitizeOnShutdown"
|
|
name="privacy.sanitize.sanitizeOnShutdown"
|
|
type="bool"/>
|
|
<preference id="privacy.sanitize.promptOnSanitize"
|
|
name="privacy.sanitize.promptOnSanitize"
|
|
type="bool"
|
|
onchange="gPrivacyPane.updateClearNowButtonLabel();"/>
|
|
|
|
</preferences>
|
|
|
|
<stringbundle id="bundlePreferences" src="chrome://browser/locale/preferences/preferences.properties"/>
|
|
|
|
<script type="application/x-javascript" src="chrome://browser/content/preferences/privacy.js"/>
|
|
|
|
<!-- History -->
|
|
<groupbox id="historyGroup">
|
|
<caption label="&history.label;"/>
|
|
|
|
<hbox align="center">
|
|
<checkbox id="rememberHistoryDays"
|
|
label="&rememberDaysBefore.label;"
|
|
accesskey="&rememberDaysBefore.accesskey;"
|
|
oncommand="gPrivacyPane.onchangeHistoryDaysCheck();"
|
|
aria-labelledby="rememberHistoryDays historyDays rememberAfter"/>
|
|
<textbox id="historyDays" type="number" size="3"
|
|
aria-labelledby="rememberHistoryDays historyDays rememberAfter"
|
|
onkeyup="gPrivacyPane.onkeyupHistoryDaysText();"
|
|
preference="browser.history_expire_days_min"/>
|
|
<label id="rememberAfter"> &rememberDaysAfter.label;</label>
|
|
</hbox>
|
|
<checkbox id="rememberForms"
|
|
label="&rememberForms.label;"
|
|
accesskey="&rememberForms.accesskey;"
|
|
preference="browser.formfill.enable"/>
|
|
<checkbox id="rememberDownloads"
|
|
label="&rememberDownloads.label;"
|
|
accesskey="&rememberDownloads.accesskey;"
|
|
preference="browser.download.manager.retention"
|
|
onsyncfrompreference="return gPrivacyPane.readDownloadRetention();"
|
|
onsynctopreference="return gPrivacyPane.writeDownloadRetention();"/>
|
|
</groupbox>
|
|
|
|
<!-- Cookies -->
|
|
<groupbox id="cookiesGroup">
|
|
<caption label="&cookies.label;"/>
|
|
|
|
<hbox id="cookiesBox">
|
|
<checkbox id="acceptCookies" label="&acceptCookies.label;" flex="1"
|
|
preference="network.cookie.cookieBehavior"
|
|
accesskey="&acceptCookies.accesskey;"
|
|
onsyncfrompreference="return gPrivacyPane.readAcceptCookies();"
|
|
onsynctopreference="return gPrivacyPane.writeAcceptCookies();"/>
|
|
<button id="cookieExceptions" oncommand="gPrivacyPane.showCookieExceptions();"
|
|
label="&cookieExceptions.label;" accesskey="&cookieExceptions.accesskey;"
|
|
preference="pref.privacy.disable_button.cookie_exceptions"/>
|
|
</hbox>
|
|
<checkbox id="acceptThirdParty" label="&acceptThirdParty.label;" class="indent"
|
|
preference="network.cookie.cookieBehavior"
|
|
accesskey="&acceptThirdParty.accesskey;"
|
|
onsyncfrompreference="return gPrivacyPane.readAcceptThirdPartyCookies();"
|
|
onsynctopreference="return gPrivacyPane.writeAcceptThirdPartyCookies();"/>
|
|
|
|
<hbox id="keepRow">
|
|
<hbox id="keepBox" align="center" class="indent">
|
|
<label id="keepUntil"
|
|
control="keepCookiesUntil"
|
|
accesskey="&keepUntil.accesskey;">&keepUntil.label;</label>
|
|
<menulist id="keepCookiesUntil"
|
|
preference="network.cookie.lifetimePolicy">
|
|
<menupopup>
|
|
<menuitem label="&expire.label;" value="0"/>
|
|
<menuitem label="&close.label;" value="2"/>
|
|
<menuitem label="&askEachTime.label;" value="1"/>
|
|
</menupopup>
|
|
</menulist>
|
|
</hbox>
|
|
<hbox flex="1"/>
|
|
<button id="showCookiesButton"
|
|
label="&showCookies.label;" accesskey="&showCookies.accesskey;"
|
|
oncommand="gPrivacyPane.showCookies();"
|
|
preference="pref.privacy.disable_button.view_cookies"/>
|
|
</hbox>
|
|
</groupbox>
|
|
|
|
<!-- Private Data -->
|
|
<groupbox id="privateDataGroup">
|
|
<caption label="&privateData.label;"/>
|
|
|
|
<hbox id="clearDataBox" align="center">
|
|
<checkbox id="alwaysClear" flex="1"
|
|
preference="privacy.sanitize.sanitizeOnShutdown"
|
|
label="&alwaysClear.label;"
|
|
accesskey="&alwaysClear.accesskey;"/>
|
|
<button id="clearDataSettings" label="&clearDataSettings.label;"
|
|
accesskey="&clearDataSettings.accesskey;"
|
|
oncommand="gPrivacyPane.showClearPrivateDataSettings();"/>
|
|
</hbox>
|
|
<hbox id="askClearBox">
|
|
<checkbox id="askBeforeClear" flex="1"
|
|
preference="privacy.sanitize.promptOnSanitize"
|
|
label="&askBeforeClear.label;"
|
|
accesskey="&askBeforeClear.accesskey;"/>
|
|
<button id="clearDataNow" icon="clear"
|
|
label1="&clearDataNow.label;"
|
|
label2="&clearDataNow.label2;"
|
|
accesskey="&clearDataNow.accesskey;"
|
|
oncommand="gPrivacyPane.clearPrivateDataNow();"/>
|
|
</hbox>
|
|
</groupbox>
|
|
|
|
</prefpane>
|
|
|
|
</overlay>
|