security/manager/pki/resources/content/exceptionDialog.xul
author Jared Wein <jwein@mozilla.com>
Wed, 16 Jan 2019 20:56:55 +0000
changeset 514137 2677d2e45ead735f352edc4ef3d46c4ce9d2e9ce
parent 507701 ff378a3336a5704867e20ea5a27893e729aa5f9e
child 520060 653381afe8bc26da037c997eec38ddb72471192e
permissions -rw-r--r--
Bug 1518786 - Wait until Fluent strings have been applied before sizing the window to content. r=Gijs Differential Revision: https://phabricator.services.mozilla.com/D16587

<?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"?>
<?xml-stylesheet href="chrome://pippki/content/exceptionDialog.css" type="text/css"?>

<!DOCTYPE dialog>

<dialog id="exceptiondialog"
        windowtype="mozilla:exceptiondialog"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        data-l10n-id="exception-mgr"
        buttonidextra1="exception-mgr-extra-button"
        buttons="cancel,extra1,extra2"
        onload="initExceptionDialog();"
        ondialogextra1="addException();"
        ondialogextra2="checkCert();"
        defaultButton="extra2">

  <linkset>
    <link rel="localization" href="branding/brand.ftl"/>
    <link rel="localization" href="security/certificates/certManager.ftl"/>
  </linkset>

  <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"/>
      <description id="warningSupplemental"
                   data-l10n-id="exception-mgr-supplemental-warning"/>
    </vbox>
  </hbox>

  <hbox align="center">
    <label control="locationTextBox"
           id="certLocationLabel"
           data-l10n-id="exception-mgr-cert-location-url"/>
    <textbox id="locationTextBox"
             flex="1"
             oninput="handleTextChange();"
             value="https://"
             class="uri-element"/>
    <button id="checkCertButton"
            disabled="true"
            dlgtype="extra2"
            data-l10n-id="exception-mgr-cert-location-download"/>
  </hbox>

  <hbox align="center">
    <description id="headerDescription"
                 flex="1"/>
    <button id="viewCertButton"
            data-l10n-id="exception-mgr-cert-status-view-cert"
            disabled="true"
            oncommand="viewCertButtonClick();"/>
  </hbox>
  <description id="statusDescription"
               class="description"/>
  <description id="statusLongDescription"
               class="longDescription"/>
  <description id="status2Description"
               class="description"/>
  <description id="status2LongDescription"
               class="longDescription"/>
  <description id="status3Description"
               class="description"/>
  <description id="status3LongDescription"
               class="longDescription"/>
  <checkbox id="permanent"
            disabled="true"
            data-l10n-id="exception-mgr-permanent"/>
</dialog>