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

http://github.com/zpao/v8monkey · Unknown · 121 lines · 114 code · 7 blank · 0 comment · 0 complexity · 3c316cf7fbcc688c1788662465d149af MD5 · raw file

  1. <?xml version="1.0"?>
  2. <!-- ***** BEGIN LICENSE BLOCK *****
  3. - Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4. -
  5. - The contents of this file are subject to the Mozilla Public License Version
  6. - 1.1 (the "License"); you may not use this file except in compliance with
  7. - the License. You may obtain a copy of the License at
  8. - http://www.mozilla.org/MPL/
  9. -
  10. - Software distributed under the License is distributed on an "AS IS" basis,
  11. - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12. - for the specific language governing rights and limitations under the
  13. - License.
  14. -
  15. - The Original Code is mozilla.org code.
  16. -
  17. - The Initial Developer of the Original Code is the Mozilla Foundation.
  18. - Portions created by the Initial Developer are Copyright (C) 2007
  19. - the Initial Developer. All Rights Reserved.
  20. -
  21. - Contributor(s):
  22. - Kai Engert <kengert@redhat.com>
  23. - Johnathan Nightingale <johnath@mozilla.com>
  24. - Steffen Wilberg <steffen.wilberg@web.de>
  25. -
  26. - Alternatively, the contents of this file may be used under the terms of
  27. - either the GNU General Public License Version 2 or later (the "GPL"), or
  28. - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  29. - in which case the provisions of the GPL or the LGPL are applicable instead
  30. - of those above. If you wish to allow use of your version of this file only
  31. - under the terms of either the GPL or the LGPL, and not to allow others to
  32. - use your version of this file under the terms of the MPL, indicate your
  33. - decision by deleting the provisions above and replace them with the notice
  34. - and other provisions required by the GPL or the LGPL. If you do not delete
  35. - the provisions above, a recipient may use your version of this file under
  36. - the terms of any one of the MPL, the GPL or the LGPL.
  37. -
  38. - ***** END LICENSE BLOCK ***** -->
  39. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  40. <!DOCTYPE dialog SYSTEM "chrome://pippki/locale/certManager.dtd">
  41. <dialog id="exceptiondialog"
  42. windowtype="mozilla:exceptiondialog"
  43. xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  44. title="&exceptionMgr.title;"
  45. buttons="cancel,extra1,extra2"
  46. buttonlabelextra1="&exceptionMgr.exceptionButton.label;"
  47. buttonaccesskeyextra1="&exceptionMgr.exceptionButton.accesskey;"
  48. style="width: 500px; height: 480px;"
  49. onload="initExceptionDialog();"
  50. ondialogextra1="addException();"
  51. ondialogextra2="checkCert();"
  52. persist="screenX screenY width height"
  53. defaultButton="extra2">
  54. <script type="application/javascript" src="chrome://global/content/strres.js"/>
  55. <script type="application/javascript" src="chrome://pippki/content/pippki.js"/>
  56. <script type="application/javascript" src="chrome://pippki/content/exceptionDialog.js"/>
  57. <hbox>
  58. <vbox>
  59. #ifdef MOZ_WIDGET_GTK2
  60. <image src="moz-icon://stock/gtk-dialog-warning?size=dialog"/>
  61. #else
  62. <image src="chrome://global/skin/icons/warning-large.png"/>
  63. #endif
  64. <spacer flex="1"/>
  65. </vbox>
  66. <vbox flex="1">
  67. <!-- Note that because of the styling, there must be no whitespace within
  68. the description tags -->
  69. <description id="warningText"
  70. style="white-space: pre-wrap"/>
  71. <description id="warningSupplemental"
  72. style="font-weight: bold; white-space: pre-wrap;"
  73. >&exceptionMgr.supplementalWarning;</description>
  74. </vbox>
  75. </hbox>
  76. <groupbox id="locationGroupBox">
  77. <caption label="&exceptionMgr.certlocation.caption2;"/>
  78. <hbox align="center">
  79. <label control="locationTextBox" value="&exceptionMgr.certlocation.url;"/>
  80. <textbox id="locationTextBox" flex="1" oninput="handleTextChange();"
  81. value="https://" class="uri-element"/>
  82. <button id="checkCertButton" disabled="true" dlgtype="extra2"
  83. accesskey="&exceptionMgr.certlocation.accesskey;"
  84. label="&exceptionMgr.certlocation.download;"/>
  85. </hbox>
  86. </groupbox>
  87. <groupbox id="certStatusGroupBox" flex="1">
  88. <caption label="&exceptionMgr.certstatus.caption;"/>
  89. <vbox style="overflow: auto;" flex="1">
  90. <hbox>
  91. <description id="headerDescription" style="white-space: pre-wrap;"
  92. flex="1"/>
  93. <vbox>
  94. <button id="viewCertButton" label="&exceptionMgr.certstatus.viewCert;"
  95. accesskey="&exceptionMgr.certstatus.accesskey;"
  96. disabled="true" oncommand="viewCertButtonClick();"/>
  97. </vbox>
  98. </hbox>
  99. <description id="statusDescription"
  100. style="font-weight: bold; padding-bottom: 1em;"/>
  101. <description id="statusLongDescription" style="white-space: pre-wrap;"/>
  102. <description id="status2Description"
  103. style="font-weight: bold; padding-bottom: 1em;"/>
  104. <description id="status2LongDescription" style="white-space: pre-wrap;"/>
  105. <description id="status3Description"
  106. style="font-weight: bold; padding-bottom: 1em;"/>
  107. <description id="status3LongDescription" style="white-space: pre-wrap;"/>
  108. <spacer flex="1"/>
  109. </vbox>
  110. <checkbox id="permanent" disabled="true"
  111. label="&exceptionMgr.permanent.label;"
  112. accesskey="&exceptionMgr.permanent.accesskey;"/>
  113. </groupbox>
  114. </dialog>