summaryrefslogtreecommitdiffstats
path: root/comm/mail/base/content/sanitize.xhtml
blob: b9186841ab116b9457ae90899aa188e8e4da7d3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?xml version="1.0"?>

<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<?xml-stylesheet href="chrome://global/skin/global.css"?>
<?xml-stylesheet href="chrome://messenger/skin/variables.css"?>
<?xml-stylesheet href="chrome://messenger/skin/shared/sanitizeDialog.css"?>
<?xml-stylesheet href="chrome://messenger/skin/contextMenu.css"?>
<?xml-stylesheet href="chrome://messenger/skin/colors.css"?>
<?xml-stylesheet href="chrome://messenger/skin/themeableDialog.css"?>

<!DOCTYPE window [
  <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
  <!ENTITY % sanitizeDTD SYSTEM "chrome://messenger/locale/sanitize.dtd">
  %brandDTD;
  %sanitizeDTD;
]>

<window type="child"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        xmlns:html="http://www.w3.org/1999/xhtml"
        title="&sanitizeDialog2.title;"
        noneverythingtitle="&sanitizeDialog2.title;"
        style="min-width: &dialog.width;"
        lightweightthemes="true"
        onload="gSanitizePromptDialog.init();">
<dialog id="SanitizeDialog"
        dlgbuttons="accept,cancel">

  <vbox id="SanitizeDialogPane">
    <stringbundle id="bundleBrowser"
            src="chrome://messenger/locale/messenger.properties"/>

    <script src="chrome://messenger/content/sanitize.js"/>
    <script src="chrome://messenger/content/sanitizeDialog.js"/>
    <script src="chrome://messenger/content/dialogShadowDom.js"/>

    <hbox id="SanitizeDurationBox" align="center">
      <label value="&clearTimeDuration.label;"
             accesskey="&clearTimeDuration.accesskey;"
             control="sanitizeDurationChoice"
             id="sanitizeDurationLabel"/>
      <menulist id="sanitizeDurationChoice"
                onselect="gSanitizePromptDialog.selectByTimespan();"
                flex="1">
        <menupopup id="sanitizeDurationPopup">
          <menuitem label="&clearTimeDuration.lastHour;" value="1"/>
          <menuitem label="&clearTimeDuration.last2Hours;" value="2"/>
          <menuitem label="&clearTimeDuration.last4Hours;" value="3"/>
          <menuitem label="&clearTimeDuration.today;" value="4"/>
          <menuseparator/>
          <menuitem label="&clearTimeDuration.everything;" value="0"/>
        </menupopup>
      </menulist>
      <label id="sanitizeDurationSuffixLabel"
             value="&clearTimeDuration.suffix;"/>
    </hbox>

      <vbox id="sanitizeEverythingWarningBox">
        <spacer flex="1"/>
        <hbox align="center">
          <html:img id="sanitizeEverythingWarningIcon" alt="" />
          <vbox id="sanitizeEverythingWarningDescBox" flex="1">
            <description id="sanitizeEverythingWarning"/>
            <description id="sanitizeEverythingUndoWarning">&sanitizeEverythingUndoWarning;</description>
          </vbox>
        </hbox>
        <spacer flex="1"/>
      </vbox>

    <label id="historyGroupLabel" value="&historyGroup.label;"/>
    <vbox id="historyGroup">
      <checkbox label="&itemHistory.label;"
                accesskey="&itemHistory.accesskey;"
                preference="privacy.cpd.history"
                oncommand="gSanitizePromptDialog.onReadGeneric();"/>
      <checkbox label="&itemCookies.label;"
                accesskey="&itemCookies.accesskey;"
                preference="privacy.cpd.cookies"
                oncommand="gSanitizePromptDialog.onReadGeneric();"/>
      <checkbox label="&itemCache.label;"
                accesskey="&itemCache.accesskey;"
                preference="privacy.cpd.cache"
                oncommand="gSanitizePromptDialog.onReadGeneric();"/>
    </vbox>
    <separator class="thin"/>

  </vbox>
</dialog>
</window>