summaryrefslogtreecommitdiffstats
path: root/comm/mail/components/preferences/passwordManager.xhtml
blob: 594f2da8d86c204c59e765e1554db878f2675ec2 (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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<?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 https://mozilla.org/MPL/2.0/. -->

<?xml-stylesheet href="chrome://global/skin/global.css"?>
<?xml-stylesheet href="chrome://messenger/skin/shared/preferences/passwordmgr.css"?>

<window
  id="SignonViewerDialog"
  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  xmlns:html="http://www.w3.org/1999/xhtml"
  onload="Startup();"
  onunload="Shutdown();"
  data-l10n-id="saved-logins"
  persist="width height"
>
  <linkset>
    <html:link rel="localization" href="branding/brand.ftl" />
    <html:link
      rel="localization"
      href="messenger/preferences/passwordManager.ftl"
    />
  </linkset>
  <script src="chrome://messenger/content/globalOverlay.js" />
  <script src="chrome://global/content/editMenuOverlay.js" />
  <script src="chrome://messenger/content/preferences/passwordManager.js" />

  <keyset>
    <key keycode="VK_ESCAPE" oncommand="escapeKeyHandler();" />
    <key
      data-l10n-id="window-close"
      modifiers="accel"
      oncommand="escapeKeyHandler();"
    />
    <key
      data-l10n-id="focus-search-primary-shortcut"
      modifiers="accel"
      oncommand="FocusFilterBox();"
    />
    <key
      data-l10n-id="focus-search-alt-shortcut"
      modifiers="accel"
      oncommand="FocusFilterBox();"
    />
  </keyset>

  <popupset id="signonsTreeContextSet">
    <menupopup id="signonsTreeContextMenu" onpopupshowing="UpdateContextMenu()">
      <menuitem
        id="context-copyproviderurl"
        data-l10n-id="copy-provider-url-cmd"
        oncommand="CopyProviderUrl()"
      />
      <menuseparator />
      <menuitem
        id="context-copyusername"
        data-l10n-id="copy-username-cmd"
        oncommand="CopyUsername()"
      />
      <menuitem
        id="context-editusername"
        data-l10n-id="edit-username-cmd"
        oncommand="EditCellInSelectedRow('username')"
      />
      <menuseparator />
      <menuitem
        id="context-copypassword"
        data-l10n-id="copy-password-cmd"
        oncommand="CopyPassword()"
      />
      <menuitem
        id="context-editpassword"
        data-l10n-id="edit-password-cmd"
        oncommand="EditCellInSelectedRow('password')"
      />
    </menupopup>
  </popupset>

  <!-- saved signons -->
  <vbox id="savedsignons" class="contentPane" flex="1">
    <!-- filter -->
    <hbox align="center">
      <search-textbox
        id="filter"
        flex="1"
        aria-controls="signonsTree"
        oncommand="FilterPasswords();"
        data-l10n-id="search-filter"
      />
    </hbox>

    <label control="signonsTree" id="signonsIntro" />
    <separator class="thin" />
    <tree
      id="signonsTree"
      flex="1"
      onkeypress="HandleSignonKeyPress(event)"
      onselect="SignonSelected();"
      editable="true"
      context="signonsTreeContextMenu"
    >
      <treecols>
        <treecol
          id="providerCol"
          data-l10n-id="column-heading-provider"
          data-field-name="origin"
          persist="width"
          ignoreincolumnpicker="true"
          sortDirection="ascending"
        />
        <splitter class="tree-splitter" />
        <treecol
          id="userCol"
          data-l10n-id="column-heading-username"
          ignoreincolumnpicker="true"
          data-field-name="username"
          persist="width"
        />
        <splitter class="tree-splitter" />
        <treecol
          id="passwordCol"
          data-l10n-id="column-heading-password"
          ignoreincolumnpicker="true"
          data-field-name="password"
          persist="width"
          hidden="true"
        />
        <splitter class="tree-splitter" />
        <treecol
          id="timeCreatedCol"
          data-l10n-id="column-heading-time-created"
          data-field-name="timeCreated"
          persist="width hidden"
          hidden="true"
        />
        <splitter class="tree-splitter" />
        <treecol
          id="timeLastUsedCol"
          data-l10n-id="column-heading-time-last-used"
          data-field-name="timeLastUsed"
          persist="width hidden"
          hidden="true"
        />
        <splitter class="tree-splitter" />
        <treecol
          id="timePasswordChangedCol"
          data-l10n-id="column-heading-time-password-changed"
          data-field-name="timePasswordChanged"
          persist="width hidden"
        />
        <splitter class="tree-splitter" />
        <treecol
          id="timesUsedCol"
          data-l10n-id="column-heading-times-used"
          data-field-name="timesUsed"
          persist="width hidden"
          hidden="true"
        />
        <splitter class="tree-splitter" />
      </treecols>
      <treechildren />
    </tree>
    <separator class="thin" />
    <hbox id="SignonViewerButtons">
      <button
        id="removeSignon"
        disabled="true"
        data-l10n-id="remove"
        oncommand="DeleteSignon();"
      />
      <button id="removeAllSignons" oncommand="DeleteAllSignons();" />
      <spacer flex="1" />
      <button id="togglePasswords" oncommand="TogglePasswordVisible();" />
    </hbox>
  </vbox>
  <hbox align="end">
    <hbox class="actionButtons" flex="1">
      <spacer flex="1" />
      <button
        oncommand="window.close();"
        data-l10n-id="password-close-button"
      />
    </hbox>
  </hbox>
</window>