security/manager/pki/resources/content/exceptionDialog.xul

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 <?xml version="1.0"?>
michael@0 2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 - License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
michael@0 5
michael@0 6 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
michael@0 7
michael@0 8 <!DOCTYPE dialog SYSTEM "chrome://pippki/locale/certManager.dtd">
michael@0 9
michael@0 10 <dialog id="exceptiondialog"
michael@0 11 windowtype="mozilla:exceptiondialog"
michael@0 12 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
michael@0 13 title="&exceptionMgr.title;"
michael@0 14 buttons="cancel,extra1,extra2"
michael@0 15 buttonlabelextra1="&exceptionMgr.exceptionButton.label;"
michael@0 16 buttonaccesskeyextra1="&exceptionMgr.exceptionButton.accesskey;"
michael@0 17 style="width: 500px; height: 480px;"
michael@0 18 onload="initExceptionDialog();"
michael@0 19 ondialogextra1="addException();"
michael@0 20 ondialogextra2="checkCert();"
michael@0 21 persist="screenX screenY width height"
michael@0 22 defaultButton="extra2">
michael@0 23
michael@0 24 <stringbundleset id="stringbundleset">
michael@0 25 <stringbundle id="pippki_bundle" src="chrome://pippki/locale/pippki.properties"/>
michael@0 26 <stringbundle id="brand_bundle" src="chrome://branding/locale/brand.properties"/>
michael@0 27 </stringbundleset>
michael@0 28
michael@0 29 <script type="application/javascript" src="chrome://pippki/content/pippki.js"/>
michael@0 30 <script type="application/javascript" src="chrome://pippki/content/exceptionDialog.js"/>
michael@0 31
michael@0 32 <hbox>
michael@0 33 <vbox>
michael@0 34 #ifdef MOZ_WIDGET_GTK
michael@0 35 <image src="moz-icon://stock/gtk-dialog-warning?size=dialog"/>
michael@0 36 #else
michael@0 37 <image src="chrome://global/skin/icons/warning-large.png"/>
michael@0 38 #endif
michael@0 39 <spacer flex="1"/>
michael@0 40 </vbox>
michael@0 41 <vbox flex="1">
michael@0 42 <!-- Note that because of the styling, there must be no whitespace within
michael@0 43 the description tags -->
michael@0 44 <description id="warningText"
michael@0 45 style="white-space: pre-wrap"/>
michael@0 46 <description id="warningSupplemental"
michael@0 47 style="font-weight: bold; white-space: pre-wrap;"
michael@0 48 >&exceptionMgr.supplementalWarning;</description>
michael@0 49 </vbox>
michael@0 50 </hbox>
michael@0 51
michael@0 52 <groupbox id="locationGroupBox">
michael@0 53 <caption label="&exceptionMgr.certlocation.caption2;"/>
michael@0 54 <hbox align="center">
michael@0 55 <label control="locationTextBox" value="&exceptionMgr.certlocation.url;"/>
michael@0 56 <textbox id="locationTextBox" flex="1" oninput="handleTextChange();"
michael@0 57 value="https://" class="uri-element"/>
michael@0 58 <button id="checkCertButton" disabled="true" dlgtype="extra2"
michael@0 59 accesskey="&exceptionMgr.certlocation.accesskey;"
michael@0 60 label="&exceptionMgr.certlocation.download;"/>
michael@0 61 </hbox>
michael@0 62 </groupbox>
michael@0 63
michael@0 64 <groupbox id="certStatusGroupBox" flex="1">
michael@0 65 <caption label="&exceptionMgr.certstatus.caption;"/>
michael@0 66 <vbox style="overflow: auto;" flex="1">
michael@0 67 <hbox>
michael@0 68 <description id="headerDescription" style="white-space: pre-wrap;"
michael@0 69 flex="1"/>
michael@0 70 <vbox>
michael@0 71 <button id="viewCertButton" label="&exceptionMgr.certstatus.viewCert;"
michael@0 72 accesskey="&exceptionMgr.certstatus.accesskey;"
michael@0 73 disabled="true" oncommand="viewCertButtonClick();"/>
michael@0 74 </vbox>
michael@0 75 </hbox>
michael@0 76 <description id="statusDescription"
michael@0 77 style="font-weight: bold; padding-bottom: 1em;"/>
michael@0 78 <description id="statusLongDescription" style="white-space: pre-wrap;"/>
michael@0 79 <description id="status2Description"
michael@0 80 style="font-weight: bold; padding-bottom: 1em;"/>
michael@0 81 <description id="status2LongDescription" style="white-space: pre-wrap;"/>
michael@0 82 <description id="status3Description"
michael@0 83 style="font-weight: bold; padding-bottom: 1em;"/>
michael@0 84 <description id="status3LongDescription" style="white-space: pre-wrap;"/>
michael@0 85 <spacer flex="1"/>
michael@0 86 </vbox>
michael@0 87 <checkbox id="permanent" disabled="true"
michael@0 88 label="&exceptionMgr.permanent.label;"
michael@0 89 accesskey="&exceptionMgr.permanent.accesskey;"/>
michael@0 90 </groupbox>
michael@0 91 </dialog>

mercurial