Bug 1562654 - Replace XUL textbox with HTML input in security/manager/pki/resources/content/certViewer.js r=keeler
authorTim Nguyen <ntim.bugs@gmail.com>
Mon, 01 Jul 2019 21:05:26 +0000
changeset 540497 024f3ba5e1232eccba5cbe8b5eabc02e3b5cce19
parent 540496 468e240bf6683f53ad1c7f87e70253a7a3b38af6
child 540498 351504c92d1354cb2e02c171de2c29cfd985a97a
push id11529
push userarchaeopteryx@coole-files.de
push dateThu, 04 Jul 2019 15:22:33 +0000
treeherdermozilla-beta@ebb510a784b8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskeeler
bugs1562654
milestone69.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1562654 - Replace XUL textbox with HTML input in security/manager/pki/resources/content/certViewer.js r=keeler Differential Revision: https://phabricator.services.mozilla.com/D36490
security/manager/pki/resources/content/certViewer.js
--- a/security/manager/pki/resources/content/certViewer.js
+++ b/security/manager/pki/resources/content/certViewer.js
@@ -41,21 +41,21 @@ function AddCertChain(node, chain) {
 /**
  * Adds a "verified usage" of a cert to the "General" tab of the cert viewer.
  *
  * @param {String} l10nId
  *        l10nId of verified usage to add.
  */
 function AddUsage(l10nId) {
   let verifyInfoBox = document.getElementById("verify_info_box");
-  let text = document.createXULElement("textbox");
+  let text = document.createElementNS("http://www.w3.org/1999/xhtml", "input");
   document.l10n.setAttributes(text, l10nId);
   text.setAttribute("data-l10n-attrs", "value");
   text.setAttribute("style", "margin: 2px 5px");
-  text.setAttribute("readonly", "true");
+  text.setAttribute("readonly", "readonly");
   text.setAttribute("class", "scrollfield");
   verifyInfoBox.appendChild(text);
 }
 
 function setWindowName() {
   let cert = window.arguments[0].QueryInterface(Ci.nsIX509Cert);
   window.document.l10n.setAttributes(window.document.documentElement, "cert-viewer-title", {certName: cert.displayName});