summaryrefslogtreecommitdiffstats
path: root/browser/components/controlcenter/content/identityPanel.inc.xhtml
blob: 0344fcb566e8e0bedd92b0d45e42aea38de5c329 (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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<!-- 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/. -->

<html:template id="template-identity-popup">
<panel id="identity-popup"
       class="panel-no-padding"
       type="arrow"
       role="alertdialog"
       noautofocus="true"
       aria-labelledby="identity-popup-mainView-panel-header-span"
       onpopupshown="gIdentityHandler.onPopupShown(event);"
       onpopuphidden="gIdentityHandler.onPopupHidden(event);"
       orient="vertical">

  <panelmultiview id="identity-popup-multiView"
                  mainViewId="identity-popup-mainView">
    <panelview id="identity-popup-mainView"
               class="PanelUI-subView"
               role="document"
               mainview-with-header="true">
      <!-- The panel header text value changes dynamically by browser-siteIdentity.js,
         - that's why the panel header box needs to remain hardcoded in the markup.
         - instead of being handled by PanelMultiView.sys.mjs. -->
      <box id="identity-popup-mainView-panel-header" class="panel-header">
        <html:h1>
          <html:span id="identity-popup-mainView-panel-header-span"/>
        </html:h1>
      </box>
      <toolbarseparator/>
      <vbox class="panel-subview-body">
        <toolbarbutton id="identity-popup-security-button"
                       class="identity-popup-security-connection subviewbutton subviewbutton-iconic"
                       oncommand="gIdentityHandler.showSecuritySubView();">
          <image class="identity-popup-security-connection-icon toolbarbutton-icon"></image>
          <hbox class="toolbarbutton-text" flex="1">
            <label class="identity-popup-connection-not-secure"
                        when-connection="not-secure secure-cert-user-overridden secure-custom-root cert-error-page https-only-error-page" data-l10n-id="identity-connection-not-secure"></label>
            <label class="identity-popup-connection-secure"
                        when-connection="secure secure-ev" data-l10n-id="identity-connection-secure"></label>
            <label class="identity-popup-connection-failure"
                        when-connection="net-error-page" data-l10n-id="identity-connection-failure"></label>
            <label when-connection="chrome" data-l10n-id="identity-connection-internal"></label>
            <label when-connection="file" data-l10n-id="identity-connection-file"></label>
            <label when-connection="associated" data-l10n-id="identity-connection-associated"></label>
            <label when-connection="extension" data-l10n-id="identity-extension-page"></label>
            <label class="identity-popup-connection-secure upgraded" when-httpsonlystatus="upgraded failed-sub"
              data-l10n-id="identity-https-only-connection-upgraded"></label>
          </hbox>
        </toolbarbutton>

        <!-- Security Section -->
        <hbox id="identity-popup-security" class="identity-popup-section indented" flex="1">
          <vbox class="identity-popup-security-content" flex="1">

            <vbox id="identity-popup-security-description">
              <description id="identity-popup-security-ev-content-owner"
                           when-connection="secure-ev"/>
              <description class="identity-popup-warning-box identity-popup-warning-gray"
                           when-mixedcontent="active-blocked" data-l10n-id="identity-active-blocked"></description>
              <description id="identity-popup-security-decription-custom-root"
                           class="identity-popup-warning-box identity-popup-warning-gray"
                           when-customroot="true" data-l10n-id="identity-custom-root"></description>
              <description class="identity-popup-warning-box identity-popup-warning-yellow"
                           when-mixedcontent="passive-loaded" data-l10n-id="identity-passive-loaded"></description>
              <description class="identity-popup-warning-box identity-popup-warning-yellow"
                           when-mixedcontent="active-loaded" data-l10n-id="identity-active-loaded"></description>
              <description class="identity-popup-warning-box identity-popup-warning-yellow"
                           when-ciphers="weak" data-l10n-id="identity-weak-encryption"></description>
            </vbox>

            <vbox id="identity-popup-security-httpsonlymode" when-httpsonlystatus="exception upgraded failed-top failed-sub">
              <label flex="1" data-l10n-id="identity-https-only-label2"></label>
              <menulist id="identity-popup-security-httpsonlymode-menulist"
                        oncommand="gIdentityHandler.changeHttpsOnlyPermission();" sizetopopup="none">
                <menupopup>
                  <menuitem value="0" data-l10n-id="identity-https-only-dropdown-on" />
                  <menuitem value="1" data-l10n-id="identity-https-only-dropdown-off"
                            id="identity-popup-security-menulist-off-item" />
                  <menuitem value="2" data-l10n-id="identity-https-only-dropdown-off-temporarily" />
                </menupopup>
              </menulist>
              <vbox id="identity-popup-security-httpsonlymode-info">
                <description when-httpsonlystatus="exception" flex="1" data-l10n-id="identity-https-only-info-turn-on3">
                </description>
                <description when-httpsonlystatus="failed-sub" flex="1" data-l10n-id="identity-https-only-info-turn-off3">
                </description>
                <description when-httpsonlystatus="failed-top" flex="1" data-l10n-id="identity-https-only-info-no-upgrade">
                </description>
              </vbox>
            </vbox>

          </vbox>
        </hbox>
      </vbox>

      <!-- Clear Site Data Button -->
      <vbox id="identity-popup-clear-sitedata-footer"
            class="panel-subview-footer-button"
            hidden="true">
        <toolbarseparator/>
        <toolbarbutton id="identity-popup-clear-sitedata-button"
                data-l10n-id="identity-clear-site-data"
                class="subviewbutton"
                oncommand="gIdentityHandler.clearSiteData(event);"/>
      </vbox>
    </panelview>

    <!-- Security SubView -->
    <panelview id="identity-popup-securityView"
               class="PanelUI-subView"
               role="document">
      <vbox class="panel-subview-body">
        <hbox class="identity-popup-security-connection identity-popup-section" align="center">
          <image class="identity-popup-security-connection-icon"/>
          <description class="identity-popup-connection-not-secure security-view"
                       when-connection="not-secure secure-cert-user-overridden cert-error-page net-error-page https-only-error-page" data-l10n-id="identity-connection-not-secure-security-view"></description>
          <description class="identity-popup-connection-secure security-view"
                       when-connection="secure secure-ev" data-l10n-id="identity-connection-verified"></description>
        </hbox>

        <vbox id="identity-popup-securityView-extended-info" class="identity-popup-section">
          <!-- (EV) Certificate Information -->
          <description id="identity-popup-content-owner-label"
                       when-connection="secure-ev" data-l10n-id="identity-ev-owner-label"></description>
          <description id="identity-popup-content-owner"
                       when-connection="secure-ev"
                       class="header"/>
          <description id="identity-popup-content-supplemental"
                       when-connection="secure-ev"/>
          <description id="identity-popup-content-verifier"
                       when-connection="secure secure-ev secure-cert-user-overridden"/>
          <description id="identity-popup-content-verifier-unknown"
                       class="identity-popup-warning-box identity-popup-warning-gray"
                       when-customroot="true">
            <label data-l10n-id="identity-description-custom-root2"/>
            <html:a is="moz-support-link" id="identity-popup-custom-root-learn-more" support-page="enterprise-roots"/>
          </description>

          <!-- Remove Certificate Exception -->
          <button when-connection="secure-cert-user-overridden"
                  data-l10n-id="identity-remove-cert-exception"
                  class="panel-button"
                  oncommand="gIdentityHandler.removeCertException()"/>

          <!-- Connection is Not Secure -->
          <description when-connection="not-secure cert-error-page net-error-page https-only-error-page"
                       data-l10n-id="identity-description-insecure"></description>

          <!-- Weak Cipher -->
          <description when-ciphers="weak" data-l10n-id="identity-description-weak-cipher-intro"></description>
          <description class="identity-popup-warning-box identity-popup-warning-yellow"
                       when-ciphers="weak" data-l10n-id="identity-description-weak-cipher-risk"></description>

          <!-- Active Mixed Content Blocked -->
          <description class="identity-popup-warning-box identity-popup-warning-gray"
                       when-mixedcontent="active-blocked">
            <label data-l10n-id="identity-description-active-blocked2"/>
            <html:a is="moz-support-link" class="identity-popup-mcb-learn-more" support-page="mixed-content"/>
          </description>

          <!-- Passive Mixed Content Loaded -->
          <description when-mixedcontent="passive-loaded" data-l10n-id="identity-description-passive-loaded"></description>
          <description class="identity-popup-warning-box identity-popup-warning-yellow"
                       when-mixedcontent="passive-loaded">
            <label data-l10n-id="identity-description-passive-loaded-insecure2"/>
            <html:a is="moz-support-link" class="identity-popup-mcb-learn-more" support-page="mixed-content"/>
          </description>

          <!-- Passive Mixed Content Loaded, Active Mixed Content Blocked -->
          <description when-mixedcontent="passive-loaded active-blocked" data-l10n-id="identity-description-passive-loaded"></description>
          <description when-mixedcontent="passive-loaded active-blocked"
                       class="identity-popup-warning-box identity-popup-warning-yellow">
            <label data-l10n-id="identity-description-passive-loaded-mixed2"/>
            <html:a is="moz-support-link" class="identity-popup-mcb-learn-more" support-page="mixed-content"/>
          </description>

          <!-- Active Mixed Content Blocking Disabled -->
          <description when-mixedcontent="active-loaded"
                       data-l10n-id="identity-description-active-loaded"></description>
          <description when-mixedcontent="active-loaded"
                       data-l10n-id="identity-description-active-loaded-insecure"></description>
          <hbox>
            <html:a is="moz-support-link" when-mixedcontent="active-loaded"
                       and-when-loginforms="secure" class="identity-popup-mcb-learn-more" support-page="mixed-content"/>
          </hbox>


          <!-- Buttons to enable/disable mixed content blocking. -->
          <button when-mixedcontent="active-blocked"
                  data-l10n-id="identity-disable-mixed-content-blocking"
                  class="panel-button"
                  oncommand="gIdentityHandler.disableMixedContentProtection()"/>
          <button when-mixedcontent="active-loaded"
                  data-l10n-id="identity-enable-mixed-content-blocking"
                  class="panel-button"
                  oncommand="gIdentityHandler.enableMixedContentProtection()"/>
        </vbox>
      </vbox>

      <vbox id="identity-popup-more-info-footer">
        <!-- More Security Information -->
        <toolbarseparator />
        <toolbarbutton id="identity-popup-more-info"
                data-l10n-id="identity-more-info-link-text"
                class="subviewbutton panel-subview-footer-button"
                oncommand="gIdentityHandler.handleMoreInfoClick(event);"/>
      </vbox>

    </panelview>
  </panelmultiview>
</panel>
</html:template>