summaryrefslogtreecommitdiffstats
path: root/security/manager/pki/resources/content/exceptionDialog.xul
blob: 6d417f360ccd53fe182f36f25af6db733dfbc8ae (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
<?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/" type="text/css"?>

<!DOCTYPE dialog SYSTEM "chrome://pippki/locale/certManager.dtd">

<dialog id="exceptiondialog"
        windowtype="mozilla:exceptiondialog"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        title="&exceptionMgr.title;"
        buttons="cancel,extra1,extra2"
        buttonlabelextra1="&exceptionMgr.exceptionButton.label;"
        buttonaccesskeyextra1="&exceptionMgr.exceptionButton.accesskey;"
        style="width: 46em; min-height: 38em;"
        onload="initExceptionDialog();"
        ondialogextra1="addException();"
        ondialogextra2="checkCert();"
        persist="screenX screenY width height"
        defaultButton="extra2">

  <stringbundleset id="stringbundleset">
    <stringbundle id="pippki_bundle" src="chrome://pippki/locale/pippki.properties"/>
    <stringbundle id="brand_bundle" src="chrome://branding/locale/brand.properties"/>
  </stringbundleset>

  <script type="application/javascript" src="chrome://pippki/content/pippki.js"/>
  <script type="application/javascript" src="chrome://pippki/content/exceptionDialog.js"/>

  <hbox>
    <vbox>
#ifdef MOZ_WIDGET_GTK
      <image src="moz-icon://stock/gtk-dialog-warning?size=dialog"/>
#else
      <image src="chrome://global/skin/icons/warning-large.png"/>
#endif
      <spacer flex="1"/>
    </vbox>
    <vbox flex="1">
      <!-- Note that because of the styling, there must be no whitespace within
      the description tags -->
      <description id="warningText"
                   style="white-space: pre-wrap"/>
      <description id="warningSupplemental"
                   style="font-weight: bold; white-space: pre-wrap;"
                   >&exceptionMgr.supplementalWarning;</description>
    </vbox>
  </hbox>

  <groupbox id="locationGroupBox">
    <caption label="&exceptionMgr.certlocation.caption2;"/>
    <hbox align="center">
      <label control="locationTextBox" value="&exceptionMgr.certlocation.url;"/>
      <textbox id="locationTextBox" flex="1" oninput="handleTextChange();"
               value="https://" class="uri-element"/>
      <button id="checkCertButton" disabled="true" dlgtype="extra2"
              accesskey="&exceptionMgr.certlocation.accesskey;"
              label="&exceptionMgr.certlocation.download;"/>
    </hbox>
  </groupbox>

  <groupbox id="certStatusGroupBox" flex="1">
    <caption label="&exceptionMgr.certstatus.caption;"/>
    <hbox>
      <description id="headerDescription" style="white-space: pre-wrap;"
                   flex="1"/>
      <vbox>
        <button id="viewCertButton" label="&exceptionMgr.certstatus.viewCert;"
                accesskey="&exceptionMgr.certstatus.accesskey;"
                disabled="true" oncommand="viewCertButtonClick();"/>
      </vbox>
    </hbox>
    <description id="statusDescription"
                 style="font-weight: bold; padding-bottom: 1em;"/>
    <description id="statusLongDescription" style="white-space: pre-wrap;"/>
    <description id="status2Description"
                 style="font-weight: bold; padding-bottom: 1em;"/>
    <description id="status2LongDescription" style="white-space: pre-wrap;"/>
    <description id="status3Description"
                 style="font-weight: bold; padding-bottom: 1em;"/>
    <description id="status3LongDescription" style="white-space: pre-wrap;"/>
    <spacer flex="1"/>
    <checkbox id="permanent" disabled="true"
              label="&exceptionMgr.permanent.label;"
              accesskey="&exceptionMgr.permanent.accesskey;"/>
  </groupbox>
</dialog>