Backed out changeset 333922d27937 (bug 1567561) for browser-chrome failures at browser/base/content/test/performance/browser_startup_syncIPC.js a=backout on a CLOSED TREE
authorCoroiu Cristina <ccoroiu@mozilla.com>
Sun, 04 Aug 2019 01:03:55 +0300
changeset 486103 566622d8bd7b99311a32f39f705dc178121d2154
parent 486102 22b33b20fba18c8b22ca2231afc8c41136544df5
child 486104 324fd89e68ea7e03f56c9c50d2f0c72207c0e319
push id113829
push userdvarga@mozilla.com
push dateSat, 03 Aug 2019 22:20:04 +0000
treeherdermozilla-inbound@2e97b2d4c199 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbackout
bugs1567561
milestone70.0a1
backs out333922d279371588f26fff6469c2cf38c26b3b88
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
Backed out changeset 333922d27937 (bug 1567561) for browser-chrome failures at browser/base/content/test/performance/browser_startup_syncIPC.js a=backout on a CLOSED TREE
toolkit/components/certviewer/content/certviewer.html
toolkit/components/certviewer/content/certviewer.js
toolkit/components/certviewer/content/components/certificate-section.js
toolkit/components/certviewer/content/components/dummy-info.js
toolkit/components/certviewer/jar.mn
toolkit/components/certviewer/tests/browser/adjustedCerts.js
toolkit/components/certviewer/tests/browser/browser.ini
toolkit/components/certviewer/tests/browser/browser_renderCertToUI.js
--- a/toolkit/components/certviewer/content/certviewer.html
+++ b/toolkit/components/certviewer/content/certviewer.html
@@ -14,16 +14,17 @@
     <script defer="defer" src="chrome://global/content/certviewer/pvutils_bundle.js"></script>
     <script defer="defer" src="chrome://global/content/certviewer/asn1js_bundle.js"></script>
     <script defer="defer" src="chrome://global/content/certviewer/pkijs_bundle.js"></script>
     <script defer="defer" type="module" src="chrome://global/content/certviewer/ctlognames.js"></script>
     <script defer="defer" type="module" src="chrome://global/content/certviewer/strings.js"></script>
     <script defer="defer" type="module" src="chrome://global/content/certviewer/utils.js"></script>
     <script defer="defer" type="module" src="chrome://global/content/certviewer/certDecoder.js"></script>
     <script defer="defer" type="module" src="chrome://global/content/certviewer/certviewer.js"></script>
+    <script defer="defer" type="module" src="chrome://global/content/certviewer/components/dummy-info.js"></script>
     <script defer="defer" type="module" src="chrome://global/content/certviewer/components/info-group.js"></script>
     <script defer="defer" type="module" src="chrome://global/content/certviewer/components/info-item.js"></script>
     <script defer="defer" type="module" src="chrome://global/content/certviewer/components/certificate-section.js"></script>
     <script defer="defer" type="module" src="chrome://global/content/certviewer/components/error-section.js"></script>
     <link rel="stylesheet" href="chrome://global/skin/in-content/common.css">
     <link rel="stylesheet" href="chrome://global/content/certviewer/certviewer.css">
     <title>about:certificate</title>
   </head>
--- a/toolkit/components/certviewer/content/certviewer.js
+++ b/toolkit/components/certviewer/content/certviewer.js
@@ -3,37 +3,38 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 /* eslint-env mozilla/frame-script */
 
 "use strict";
 
 import { parse } from "./certDecoder.js";
 import { pemToDER } from "./utils.js";
+let gElements = {};
 
 document.addEventListener("DOMContentLoaded", async e => {
+  gElements.certificateSection = document.querySelector("certificate-section");
   let url = new URL(document.URL);
   let certInfo = url.searchParams.getAll("cert");
   if (certInfo.length === 0) {
     await render(true);
     return;
   }
   certInfo = certInfo.map(cert => decodeURIComponent(cert));
   await buildChain(certInfo);
 });
 
 export const updateSelectedItem = (() => {
   let state;
   return selectedItem => {
-    let certificateSection = document.querySelector("certificate-section");
     if (selectedItem) {
       if (state !== selectedItem) {
         state = selectedItem;
-        certificateSection.updateCertificateSource(selectedItem);
-        certificateSection.updateSelectedTab(selectedItem);
+        gElements.certificateSection.updateCertificateSource(selectedItem);
+        gElements.certificateSection.updateSelectedTab(selectedItem);
       }
     }
     return state;
   };
 })();
 
 const createEntryItem = (label, info) => {
   return {
@@ -217,26 +218,27 @@ const adjustCertInformation = cert => {
     }
   });
   certItems.push({
     sectionTitle: "Embedded SCTs",
     sectionItems: items,
     Critical: cert.ext.scts.critical || false,
   });
 
-  return {
-    certItems,
+  certItems.push({
     tabName: cert.subject.cn,
-  };
+  });
+
+  return certItems;
 };
 
-const render = async (certs, error) => {
+const render = async error => {
   await customElements.whenDefined("certificate-section");
   const CertificateSection = customElements.get("certificate-section");
-  document.querySelector("body").append(new CertificateSection(certs, error));
+  document.querySelector("body").append(new CertificateSection(error));
   return Promise.resolve();
 };
 
 const buildChain = async chain => {
   await Promise.all(
     chain
       .map(cert => {
         try {
@@ -253,14 +255,15 @@ const buildChain = async chain => {
         }
       })
   )
     .then(certs => {
       if (certs.length === 0) {
         return Promise.reject();
       }
       let adjustedCerts = certs.map(cert => adjustCertInformation(cert));
-      return render(adjustedCerts, false);
+      console.log(adjustedCerts);
+      return render(false);
     })
     .catch(err => {
-      render(null, true);
+      render(true);
     });
 };
--- a/toolkit/components/certviewer/content/components/certificate-section.js
+++ b/toolkit/components/certviewer/content/components/certificate-section.js
@@ -1,20 +1,20 @@
 /* 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/. */
 
 import { updateSelectedItem } from "../certviewer.js";
+import { certArray } from "./dummy-info.js";
 import { InfoGroup } from "./info-group.js";
 import { ErrorSection } from "./error-section.js";
 
 class CertificateSection extends HTMLElement {
-  constructor(certs, error) {
+  constructor(error) {
     super();
-    this.certs = certs;
     this.error = error;
   }
 
   connectedCallback() {
     let template = document.getElementById("certificate-section-template");
     let templateHtml = template.content.cloneNode(true);
 
     this.attachShadow({ mode: "open" }).appendChild(templateHtml);
@@ -37,19 +37,39 @@ class CertificateSection extends HTMLEle
 
     this.infoGroupContainer = this.shadowRoot.querySelector(".info-groups");
 
     if (this.error) {
       title.classList.add("error");
       certificateTabs.appendChild(new ErrorSection());
       return;
     }
-    for (let i = 0; i < this.certs.length; i++) {
-      this.createInfoGroupsContainers(this.certs[i].certItems, i);
-      this.createTabSection(this.certs[i].tabName, i, certificateTabs);
+
+    this.createInfoGroupsContainers();
+    for (let i = 0; i < certArray.length; i++) {
+      let tab = document.createElement("button");
+      tab.textContent = "tab" + i;
+      tab.setAttribute("id", "tab" + i);
+      tab.setAttribute("aria-controls", "panel" + i);
+      tab.setAttribute("idnumber", i);
+      tab.setAttribute("role", "tab");
+      tab.classList.add("certificate-tab");
+      tab.classList.add("tab");
+      certificateTabs.appendChild(tab);
+
+      // If it is the first tab, allow it to be tabbable by the user.
+      // If it isn't the first tab, do not allow tab functionality,
+      // as arrow functionality is implemented in certviewer.js.
+      if (i === 0) {
+        tab.classList.add("selected");
+        tab.setAttribute("tabindex", 0);
+      } else {
+        tab.setAttribute("tabindex", -1);
+      }
+      this.infoGroupsContainers[0].classList.add("selected");
     }
     this.setAccessibilityEventListeners();
   }
 
   /* Information on setAccessibilityEventListeners() can be found
    * at https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Tab_Role */
   setAccessibilityEventListeners() {
     const tabs = this.shadowRoot.querySelectorAll('[role="tab"]');
@@ -87,55 +107,35 @@ class CertificateSection extends HTMLEle
           }
         }
         tabs[tabFocus].setAttribute("tabindex", 0);
         tabs[tabFocus].focus();
       }
     });
   }
 
-  createInfoGroupsContainers(certArray, i) {
-    this.infoGroupsContainers[i] = document.createElement("div");
-    this.infoGroupsContainers[i].setAttribute("id", "panel" + i);
-    this.infoGroupsContainers[i].setAttribute("role", "tabpanel");
-    this.infoGroupsContainers[i].setAttribute("tabindex", 0);
-    this.infoGroupsContainers[i].setAttribute("aria-labelledby", "tab" + i);
-    if (i !== 0) {
-      this.infoGroupsContainers[i].setAttribute("hidden", true);
-    }
-    this.infoGroupsContainers[i].classList.add("info-groups");
-    this.shadowRoot.appendChild(this.infoGroupsContainers[i]);
-    for (let j = 0; j < certArray.length; j++) {
-      this.infoGroupsContainers[i].appendChild(new InfoGroup(certArray[j]));
+  createInfoGroupsContainers() {
+    for (let i = 0; i < certArray.length; i++) {
+      this.infoGroupsContainers[i] = document.createElement("div");
+      this.infoGroupsContainers[i].setAttribute("id", "panel" + i);
+      this.infoGroupsContainers[i].setAttribute("role", "tabpanel");
+      this.infoGroupsContainers[i].setAttribute("tabindex", 0);
+      this.infoGroupsContainers[i].setAttribute("aria-labelledby", "tab" + i);
+      if (i !== 0) {
+        this.infoGroupsContainers[i].setAttribute("hidden", true);
+      }
+      this.infoGroupsContainers[i].classList.add("info-groups");
+      this.shadowRoot.appendChild(this.infoGroupsContainers[i]);
+      let arrayItem = certArray[i];
+      for (let j = 0; j < arrayItem.length; j++) {
+        this.infoGroupsContainers[i].appendChild(new InfoGroup(arrayItem[j]));
+      }
     }
   }
 
-  createTabSection(tabName, i, certificateTabs) {
-    let tab = document.createElement("button");
-    tab.textContent = tabName;
-    tab.setAttribute("id", "tab" + i);
-    tab.setAttribute("aria-controls", "panel" + i);
-    tab.setAttribute("idnumber", i);
-    tab.setAttribute("role", "tab");
-    tab.classList.add("certificate-tab");
-    tab.classList.add("tab");
-    certificateTabs.appendChild(tab);
-
-    // If it is the first tab, allow it to be tabbable by the user.
-    // If it isn't the first tab, do not allow tab functionality,
-    // as arrow functionality is implemented in certviewer.js.
-    if (i === 0) {
-      tab.classList.add("selected");
-      tab.setAttribute("tabindex", 0);
-    } else {
-      tab.setAttribute("tabindex", -1);
-    }
-    this.infoGroupsContainers[0].classList.add("selected");
-  }
-
   updateSelectedTab(index) {
     let tabs = this.shadowRoot.querySelectorAll(".certificate-tab");
 
     for (let i = 0; i < tabs.length; i++) {
       tabs[i].classList.remove("selected");
     }
     tabs[index].classList.add("selected");
   }
new file mode 100644
--- /dev/null
+++ b/toolkit/components/certviewer/content/components/dummy-info.js
@@ -0,0 +1,182 @@
+/* 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/. */
+
+export const certArray = [
+  [
+    {
+      sectionTitle: "Subject Name",
+      sectionItems: [
+        {
+          label: "Common Name",
+          info: "developer.mozilla.org",
+        },
+      ],
+    },
+    {
+      sectionTitle: "Issuer Name",
+      sectionItems: [
+        {
+          label: "Country",
+          info: "US",
+        },
+        {
+          label: "Organization",
+          info: "Amazon",
+        },
+        {
+          label: "Organizational Unit",
+          info: "Server CA 1B",
+        },
+        {
+          label: "Common Name",
+          info: "Amazon",
+        },
+      ],
+    },
+    {
+      sectionTitle: "Validity",
+      sectionItems: [
+        {
+          label: "Not Before",
+          info: "5/14/2019, 9:00:00 PM (Atlantic Daylight Time)",
+        },
+        {
+          label: "Not After",
+          info: "6/15/2020, 9:00:00 AM (Atlantic Daylight Time)",
+        },
+      ],
+    },
+    {
+      sectionTitle: "Subject Alt Names",
+      sectionItems: [
+        {
+          label: "DNS Name",
+          info: "developer.mozilla.org",
+        },
+        {
+          label: "DNS Name",
+          info: "beta.developer.mozilla.org",
+        },
+        {
+          label: "DNS Name",
+          info: "developer-prod.mdn.mozit.cloud",
+        },
+        {
+          label: "DNS Name",
+          info: "wiki.developer.mozilla.org",
+        },
+      ],
+    },
+    {
+      sectionTitle: "Public Key Info",
+      sectionItems: [
+        {
+          label: "Algorithm",
+          info: "RSA",
+        },
+        {
+          label: "Key Size",
+          info: "2048 bits",
+        },
+        {
+          label: "Exponent",
+          info: "65537",
+        },
+        {
+          label: "Modulus",
+          info:
+            "8B:FF:8A:9E:9E:2B:11:68:78:02:95:57:B6:84:F7:F3:32:46:BE:06:41:29:5B:AF:13:D7:93:28:4A:FC:8D:33:C9:07:BC:C5:CE:45:F5:60:42:A3:65:07:19:69:B8:67:97:9C:DB:B3:A7:67:D6:7A:57:BA:82:4E:63:83:33:B9:64:A1:56:1C:8A:EF:9F:7B:74:08:3F:D0:9B:E5:39:80:1C:C3:5D:4D:1B:4F:4A:23:BE:B5:BC:DD:18:5E:1D:CE:27:C8:7B:F7:5E:E6:9C:C3:E7:69:50:45:D1:BE:01:71:A3:61:19:6D:7F:B6:6E:4B:C0:E5:11:B0:0D:01:D3:5C:66:B1:1D:61:7D:BB:43:E4:40:63:D8:C5:82:18:6B:28:24:15:39:6A:82:4F:60:3F:66:6E:23:86:2A:84:E1:34:70:AE:06:2D:92:A7:84:80:AD:6F:6F:24:52:FA:7B:E8:C2:CD:E2:55:2E:AE:27:07:04:D4:B6:F1:EC:80:2D:D1:B2:E1:74:BE:ED:D4:04:8C:D8:06:44:CC:F9:6C:4E:64:68:35:38:48:59:F7:45:49:BF:34:EE:DD:55:C6:1A:EB:61:1F:4A:FA:30:3F:73:8B:36:A8:90:6E:CB:2E:58:8F:9C:78:0A:AE:4E:45:A0:30:61:5A:6A:F8:A3:32:92:E3",
+        },
+      ],
+    },
+  ],
+  [
+    {
+      sectionTitle: "Subject Name",
+      sectionItems: [
+        {
+          label: "Common Name",
+          info: "developer.mozilla.org 2",
+        },
+      ],
+    },
+    {
+      sectionTitle: "Issuer Name",
+      sectionItems: [
+        {
+          label: "Country",
+          info: "US 2",
+        },
+        {
+          label: "Organization",
+          info: "Amazon",
+        },
+        {
+          label: "Organizational Unit",
+          info: "Server CA 1B",
+        },
+        {
+          label: "Common Name",
+          info: "Amazon",
+        },
+      ],
+    },
+    {
+      sectionTitle: "Validity",
+      sectionItems: [
+        {
+          label: "Not Before",
+          info: "5/14/2019, 9:00:00 PM (Atlantic Daylight Time) 2",
+        },
+        {
+          label: "Not After",
+          info: "6/15/2020, 9:00:00 AM (Atlantic Daylight Time)",
+        },
+      ],
+    },
+    {
+      sectionTitle: "Subject Alt Names",
+      sectionItems: [
+        {
+          label: "DNS Name",
+          info: "developer.mozilla.org 2",
+        },
+        {
+          label: "DNS Name",
+          info: "beta.developer.mozilla.org",
+        },
+        {
+          label: "DNS Name",
+          info: "developer-prod.mdn.mozit.cloud",
+        },
+        {
+          label: "DNS Name",
+          info: "wiki.developer.mozilla.org",
+        },
+      ],
+    },
+    {
+      sectionTitle: "Public Key Info",
+      sectionItems: [
+        {
+          label: "Algorithm",
+          info: "RSA 2",
+        },
+        {
+          label: "Key Size",
+          info: "2048 bits",
+        },
+        {
+          label: "Exponent",
+          info: "65537",
+        },
+        {
+          label: "Modulus",
+          info:
+            "8B:FF:8A:9E:9E:2B:11:68:78:02:95:57:B6:84:F7:F3:32:46:BE:06:41:29:5B:AF:13:D7:93:28:4A:FC:8D:33:C9:07:BC:C5:CE:45:F5:60:42:A3:65:07:19:69:B8:67:97:9C:DB:B3:A7:67:D6:7A:57:BA:82:4E:63:83:33:B9:64:A1:56:1C:8A:EF:9F:7B:74:08:3F:D0:9B:E5:39:80:1C:C3:5D:4D:1B:4F:4A:23:BE:B5:BC:DD:18:5E:1D:CE:27:C8:7B:F7:5E:E6:9C:C3:E7:69:50:45:D1:BE:01:71:A3:61:19:6D:7F:B6:6E:4B:C0:E5:11:B0:0D:01:D3:5C:66:B1:1D:61:7D:BB:43:E4:40:63:D8:C5:82:18:6B:28:24:15:39:6A:82:4F:60:3F:66:6E:23:86:2A:84:E1:34:70:AE:06:2D:92:A7:84:80:AD:6F:6F:24:52:FA:7B:E8:C2:CD:E2:55:2E:AE:27:07:04:D4:B6:F1:EC:80:2D:D1:B2:E1:74:BE:ED:D4:04:8C:D8:06:44:CC:F9:6C:4E:64:68:35:38:48:59:F7:45:49:BF:34:EE:DD:55:C6:1A:EB:61:1F:4A:FA:30:3F:73:8B:36:A8:90:6E:CB:2E:58:8F:9C:78:0A:AE:4E:45:A0:30:61:5A:6A:F8:A3:32:92:E3",
+        },
+      ],
+    },
+  ],
+];
--- a/toolkit/components/certviewer/jar.mn
+++ b/toolkit/components/certviewer/jar.mn
@@ -5,16 +5,17 @@
 toolkit.jar:
   content/global/certviewer/certviewer.html                         (content/certviewer.html)
   content/global/certviewer/certviewer.css                          (content/certviewer.css)
   content/global/certviewer/certviewer.js                           (content/certviewer.js)
   content/global/certviewer/components/certificate-section.js       (content/components/certificate-section.js)
   content/global/certviewer/components/certificate-section.css      (content/components/certificate-section.css)
   content/global/certviewer/components/error-section.js             (content/components/error-section.js)
   content/global/certviewer/components/error-section.css            (content/components/error-section.css)
+  content/global/certviewer/components/dummy-info.js                (content/components/dummy-info.js)
   content/global/certviewer/components/info-group.js                (content/components/info-group.js)
   content/global/certviewer/components/info-group.css               (content/components/info-group.css)
   content/global/certviewer/components/info-item.js                 (content/components/info-item.js)
   content/global/certviewer/components/info-item.css                (content/components/info-item.css)
   content/global/certviewer/certDecoder.js                          (content/certDecoder.js)
   content/global/certviewer/strings.js                              (content/strings.js)
   content/global/certviewer/ctlognames.js                           (content/ctlognames.js)
   content/global/certviewer/utils.js                                (content/utils.js)
deleted file mode 100644
--- a/toolkit/components/certviewer/tests/browser/adjustedCerts.js
+++ /dev/null
@@ -1,245 +0,0 @@
-"use strict";
-
-const adjustedCerts = {
-  certItems: [
-    {
-      sectionTitle: "Subject Name",
-      sectionItems: [
-        { label: "Business Category", info: "Private Organization" },
-        { label: "Inc. Country", info: "US" },
-        { label: "Inc. State / Province", info: "Delaware" },
-        { label: "Serial Number", info: "5157550" },
-        { label: "Country", info: "US" },
-        { label: "State / Province", info: "California" },
-        { label: "Locality", info: "San Francisco" },
-        { label: "Organization", info: "GitHub, Inc." },
-        { label: "Common Name", info: "github.com" },
-      ],
-      Critical: false,
-    },
-    {
-      sectionTitle: "Issuer Name",
-      sectionItems: [
-        { label: "Country", info: "US" },
-        { label: "Organization", info: "DigiCert Inc" },
-        { label: "Organizational Unit", info: "www.digicert.com" },
-        {
-          label: "Common Name",
-          info: "DigiCert SHA2 Extended Validation Server CA",
-        },
-      ],
-      Critical: false,
-    },
-    {
-      sectionTitle: "Validity",
-      sectionItems: [
-        {
-          label: "Not Before",
-          info: "5/7/2018, 9:00:00 PM (Brasilia Standard Time)",
-        },
-        { label: "Not Before UTC", info: "Tue, 08 May 2018 00:00:00 GMT" },
-        {
-          label: "Not After",
-          info: "6/3/2020, 9:00:00 AM (Brasilia Standard Time)",
-        },
-        { label: "Not After UTC", info: "Wed, 03 Jun 2020 12:00:00 GMT" },
-      ],
-      Critical: false,
-    },
-    {
-      sectionTitle: "Subject Alt Names",
-      sectionItems: [
-        { label: "DNS Name", info: "github.com" },
-        { label: "DNS Name", info: "www.github.com" },
-      ],
-      Critical: false,
-    },
-    {
-      sectionTitle: "Public Key Info",
-      sectionItems: [
-        { label: "Algorithm", info: "RSA" },
-        { label: "Key size", info: 2048 },
-        { label: "Curve" },
-        { label: "Public Value" },
-        { label: "Exponent", info: 65537 },
-        {
-          label: "Modulus",
-          info:
-            "C6:3C:AA:F2:3C:97:0C:3A:C1:4F:28:AD:72:70:7D:D3:CE:B9:B5:60:73:A4:74:9B:8A:77:46:FD:7A:98:42:4C:C5:30:19:57:9A:A9:33:0B:E1:5D:4D:10:58:CA:77:99:C3:93:F3:F9:75:90:BC:BF:BB:E0:95:BA:2E:C5:8D:73:61:05:D3:10:84:A8:B3:89:B8:2F:73:8C:F0:2A:6E:BE:EE:AE:83:4B:82:11:B1:61:FD:77:61:DA:9B:1B:9A:23:FF:8C:7E:A2:01:06:DD:D1:7F:53:96:08:C1:5A:FA:E7:C0:CA:C8:44:8C:57:A7:A8:61:5F:66:0D:57:D3:B8:96:AC:B6:4A:9C:C1:EA:E8:FB:96:40:29:F6:15:30:B5:04:B0:CC:05:B6:84:C3:24:59:95:7F:A2:65:90:E5:B0:B3:1A:75:59:C4:3F:31:14:0A:D5:CC:AA:3A:85:05:52:06:32:96:07:61:DF:27:82:0C:F7:85:DB:60:31:F0:09:50:C5:B7:1A:23:E1:B0:7D:02:F5:14:1E:C9:CB:E8:7E:2A:33:04:F6:51:3F:52:98:15:E9:0B:76:47:5C:4D:4A:6B:C5:08:15:AE:F8:D1:57:E9:EA:70:14:FF:C9:45:B9:0C:7C:BC:F4:6D:E6:05:52:F9:8C:80:BB:70:56:91:0F:4B",
-        },
-      ],
-      Critical: false,
-    },
-    {
-      sectionTitle: "Miscellaneous",
-      sectionItems: [
-        {
-          label: "Serial Number",
-          info: "0A:06:30:42:7F:5B:BC:ED:69:57:39:65:93:B6:45:1F",
-        },
-        { label: "Signature Algorithm", info: "SHA-256 with RSA Encryption" },
-        { label: "Version", info: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bYdrtYdmPUWJQIgVgw1AZ51%0D%0AvK9ENinBg22FPxb82TvNDO05T17hxXRC2IYAdgC72d+8H4pxtZOUI5eqkntHOFeV%0D%0ACqtS6BqQlmQ2jh7RhQAAAWNBYm3fAAAEAwBHMEUCIQChzdTKUU2N+XcqcK0OJYrN%0D%0A8EYynloVxho4yPk6Dq3EPgIgdNH5u8rC3UcslQV4B9o0a0w204omDREGKTVuEpxG%0D%0AeOQwDQYJKoZIhvcNAQELBQADggEBAHAPWpanWOW/ip2oJ5grAH8mqQfaunuCVE+v%0D%0Aac+88lkDK/LVdFgl2B6kIHZiYClzKtfczG93hWvKbST4NRNHP9LiaQqdNC17e5vN%0D%0AHnXVUGw+yxyjMLGqkgepOnZ2Rb14kcTOGp4i5AuJuuaMwXmCo7jUwPwfLe1NUlVB%0D%0AKqg6LK0Hcq4K0sZnxE8HFxiZ92WpV2AVWjRMEc/2z2shNoDvxvFUYyY1Oe67xINk%0D%0AmyQKc+ygSBZzyLnXSFVWmHr3u5dcaaQGGAR42v6Ydr4iL38Hd4dOiBma+FXsXBIq%0D%0AWUjbST4VXmdaol7uzFMojA4zkxQDZAvF5XgJlAFadfySna/teik=%0D%0A-----END%20CERTIFICATE-----%0D%0A",
-        },
-      ],
-      Critical: false,
-    },
-    {
-      sectionTitle: "Fingerprints",
-      sectionItems: [
-        {
-          label: "SHA-256",
-          info:
-            "31:11:50:0C:4A:66:01:2C:DA:E3:33:EC:3F:CA:1C:9D:DE:45:C9:54:44:0E:7E:E4:13:71:6B:FF:36:63:C0:74",
-        },
-        {
-          label: "SHA-1",
-          info: "CA:06:F5:6B:25:8B:7A:0D:4F:2B:05:47:09:39:47:86:51:15:19:84",
-        },
-      ],
-      Critical: false,
-    },
-    {
-      sectionTitle: "Basic Constraints",
-      sectionItems: [{ label: "Certificate Authority" }],
-      Critical: true,
-    },
-    {
-      sectionTitle: "Key Usages",
-      sectionItems: [
-        { label: "Purposes", info: ["Digital Signature", "Key Encipherment"] },
-      ],
-      Critical: true,
-    },
-    {
-      sectionTitle: "Extended Key Usages",
-      sectionItems: [
-        {
-          label: "Purposes",
-          info: ["Server Authentication", "Client Authentication"],
-        },
-      ],
-      Critical: false,
-    },
-    {
-      sectionTitle: "OCSP Stapling",
-      sectionItems: [{ label: "Required", info: false }],
-      Critical: false,
-    },
-    {
-      sectionTitle: "Subject Key ID",
-      sectionItems: [
-        {
-          label: "Key ID",
-          info: "C9:C2:53:61:66:9D:5F:AB:25:F4:26:CD:0F:38:9A:A8:49:EA:48:A9",
-        },
-      ],
-      Critical: false,
-    },
-    {
-      sectionTitle: "Authority Key ID",
-      sectionItems: [
-        {
-          label: "Key ID",
-          info: "3D:D3:50:A5:D6:A0:AD:EE:F3:4A:60:0A:65:D3:21:D4:F8:F8:D6:0F",
-        },
-      ],
-      Critical: false,
-    },
-    {
-      sectionTitle: "CRL Endpoints",
-      sectionItems: [
-        {
-          label: "Distribution Point",
-          info: "http://crl3.digicert.com/sha2-ev-server-g2.crl",
-        },
-        {
-          label: "Distribution Point",
-          info: "http://crl4.digicert.com/sha2-ev-server-g2.crl",
-        },
-      ],
-      Critical: false,
-    },
-    {
-      sectionTitle: "Authority Info (AIA)",
-      sectionItems: [
-        { label: "Location", info: "http://ocsp.digicert.com" },
-        { label: "Method", info: "Online Certificate Status Protocol (OCSP)" },
-        {
-          label: "Location",
-          info:
-            "http://cacerts.digicert.com/DigiCertSHA2ExtendedValidationServerCA.crt",
-        },
-        { label: "Method", info: "CA Issuers" },
-      ],
-      Critical: false,
-    },
-    {
-      sectionTitle: "Certificate Policies",
-      sectionItems: [
-        {
-          label: "Policy",
-          info: "ANSI Organizational Identifier ( 2.16.840 )",
-        },
-        { label: "Value", info: "2.16.840.1.114412.2.1" },
-        {
-          label: "Qualifier",
-          info: "Practices Statement ( 1.3.6.1.5.5.7.2.1 )",
-        },
-        { label: "Value", info: "https://www.digicert.com/CPS" },
-        { label: "Policy", info: "Certificate Type ( 2.23.140.1.1 )" },
-        { label: "Value", info: "Extended Validation" },
-      ],
-      Critical: false,
-    },
-    {
-      sectionTitle: "Embedded SCTs",
-      sectionItems: [
-        {
-          label: "logId",
-          info:
-            "A4:B9:09:90:B4:18:58:14:87:BB:13:A2:CC:67:70:0A:3C:35:98:04:F9:1B:DF:B8:E3:77:CD:0E:C8:0D:DC:10",
-        },
-        { label: "name", info: "Google “Pilot”" },
-        { label: "signatureAlgorithm", info: "SHA-256 ECDSA" },
-        {
-          label: "timestamp",
-          info: "5/8/2018, 5:12:39 PM (Brasilia Standard Time)",
-        },
-        { label: "timestampUTC", info: "Tue, 08 May 2018 20:12:39 GMT" },
-        { label: "version", info: 1 },
-        {
-          label: "logId",
-          info:
-            "56:14:06:9A:2F:D7:C2:EC:D3:F5:E1:BD:44:B2:3E:C7:46:76:B9:BC:99:11:5C:C0:EF:94:98:55:D6:89:D0:DD",
-        },
-        { label: "name", info: "DigiCert Server" },
-        { label: "signatureAlgorithm", info: "SHA-256 ECDSA" },
-        {
-          label: "timestamp",
-          info: "5/8/2018, 5:12:39 PM (Brasilia Standard Time)",
-        },
-        { label: "timestampUTC", info: "Tue, 08 May 2018 20:12:39 GMT" },
-        { label: "version", info: 1 },
-        {
-          label: "logId",
-          info:
-            "BB:D9:DF:BC:1F:8A:71:B5:93:94:23:97:AA:92:7B:47:38:57:95:0A:AB:52:E8:1A:90:96:64:36:8E:1E:D1:85",
-        },
-        { label: "name", info: "Google “Skydiver”" },
-        { label: "signatureAlgorithm", info: "SHA-256 ECDSA" },
-        {
-          label: "timestamp",
-          info: "5/8/2018, 5:12:39 PM (Brasilia Standard Time)",
-        },
-        { label: "timestampUTC", info: "Tue, 08 May 2018 20:12:39 GMT" },
-        { label: "version", info: 1 },
-      ],
-      Critical: false,
-    },
-  ],
-  tabName: "github.com",
-};
--- a/toolkit/components/certviewer/tests/browser/browser.ini
+++ b/toolkit/components/certviewer/tests/browser/browser.ini
@@ -1,5 +1,1 @@
-[DEFAULT]
-support-files =
-  adjustedCerts.js
 [browser_openTabAndSendCertInfo.js]
-[browser_renderCertToUI.js]
deleted file mode 100644
--- a/toolkit/components/certviewer/tests/browser/browser_renderCertToUI.js
+++ /dev/null
@@ -1,124 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/ */
-
-"use strict";
-
-const url =
-  "about:certificate?cert=MIIHQjCCBiqgAwIBAgIQCgYwQn9bvO1pVzllk7ZFHzANBgkqhkiG9w0BAQsFADB1MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMTQwMgYDVQQDEytEaWdpQ2VydCBTSEEyIEV4dGVuZGVkIFZhbGlkYXRpb24gU2VydmVyIENBMB4XDTE4MDUwODAwMDAwMFoXDTIwMDYwMzEyMDAwMFowgccxHTAbBgNVBA8MFFByaXZhdGUgT3JnYW5pemF0aW9uMRMwEQYLKwYBBAGCNzwCAQMTAlVTMRkwFwYLKwYBBAGCNzwCAQITCERlbGF3YXJlMRAwDgYDVQQFEwc1MTU3NTUwMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEVMBMGA1UEChMMR2l0SHViLCBJbmMuMRMwEQYDVQQDEwpnaXRodWIuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxjyq8jyXDDrBTyitcnB90865tWBzpHSbindG%2FXqYQkzFMBlXmqkzC%2BFdTRBYyneZw5Pz%2BXWQvL%2B74JW6LsWNc2EF0xCEqLOJuC9zjPAqbr7uroNLghGxYf13YdqbG5oj%2F4x%2BogEG3dF%2FU5YIwVr658DKyESMV6eoYV9mDVfTuJastkqcwero%2B5ZAKfYVMLUEsMwFtoTDJFmVf6JlkOWwsxp1WcQ%2FMRQK1cyqOoUFUgYylgdh3yeCDPeF22Ax8AlQxbcaI%2BGwfQL1FB7Jy%2Bh%2BKjME9lE%2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WJQIgVgw1AZ51vK9ENinBg22FPxb82TvNDO05T17hxXRC2IYAdgC72d%2B8H4pxtZOUI5eqkntHOFeVCqtS6BqQlmQ2jh7RhQAAAWNBYm3fAAAEAwBHMEUCIQChzdTKUU2N%2BXcqcK0OJYrN8EYynloVxho4yPk6Dq3EPgIgdNH5u8rC3UcslQV4B9o0a0w204omDREGKTVuEpxGeOQwDQYJKoZIhvcNAQELBQADggEBAHAPWpanWOW%2Fip2oJ5grAH8mqQfaunuCVE%2Bvac%2B88lkDK%2FLVdFgl2B6kIHZiYClzKtfczG93hWvKbST4NRNHP9LiaQqdNC17e5vNHnXVUGw%2ByxyjMLGqkgepOnZ2Rb14kcTOGp4i5AuJuuaMwXmCo7jUwPwfLe1NUlVBKqg6LK0Hcq4K0sZnxE8HFxiZ92WpV2AVWjRMEc%2F2z2shNoDvxvFUYyY1Oe67xINkmyQKc%2BygSBZzyLnXSFVWmHr3u5dcaaQGGAR42v6Ydr4iL38Hd4dOiBma%2BFXsXBIqWUjbST4VXmdaol7uzFMojA4zkxQDZAvF5XgJlAFadfySna%2Fteik%3D";
-
-/* import-globals-from ./adjustedCerts.js */
-Services.scriptloader.loadSubScript(
-  "chrome://mochitests/content/browser/toolkit/components/certviewer/tests/browser/adjustedCerts.js",
-  this
-);
-
-add_task(async function test() {
-  Assert.ok(adjustedCerts, "adjustedCerts found");
-
-  let tabName = adjustedCerts.tabName;
-  let certItems = adjustedCerts.certItems;
-
-  await BrowserTestUtils.withNewTab(url, async function(browser) {
-    await ContentTask.spawn(browser, [certItems, tabName], async function([
-      adjustedCerts,
-      expectedTabName,
-    ]) {
-      let certificateSection = await ContentTaskUtils.waitForCondition(() => {
-        return content.document.querySelector("certificate-section");
-      }, "Certificate section found");
-
-      let infoGroups = certificateSection.shadowRoot.querySelectorAll(
-        "info-group"
-      );
-      Assert.ok(infoGroups, "infoGroups found");
-      Assert.equal(
-        infoGroups.length,
-        adjustedCerts.length,
-        "infoGroups must have the same length of adjustedCerts"
-      );
-
-      let tabName = certificateSection.shadowRoot.querySelector(
-        ".certificate-tabs"
-      ).children[0].innerText;
-      Assert.equal(tabName, expectedTabName, "Tab name should be the same");
-
-      function getElementByAttribute(source, property, target) {
-        for (let elem of source) {
-          if (elem.hasOwnProperty(property) && elem[property] === target) {
-            return elem;
-          }
-        }
-        return null;
-      }
-
-      for (let infoGroup of infoGroups) {
-        let sectionTitle = infoGroup.shadowRoot.querySelector(
-          ".info-group-title"
-        ).innerText;
-
-        let adjustedCertsElem = getElementByAttribute(
-          adjustedCerts,
-          "sectionTitle",
-          sectionTitle
-        );
-        Assert.ok(adjustedCertsElem, "The element exists in adjustedCerts");
-
-        let infoItems = infoGroup.shadowRoot.querySelectorAll("info-item");
-        Assert.equal(
-          infoItems.length,
-          adjustedCertsElem.sectionItems.length,
-          "sectionItems must be the same length"
-        );
-
-        let i = 0;
-        for (let infoItem of infoItems) {
-          let infoItemLabel = infoItem.shadowRoot
-            .querySelector("label")
-            .getAttribute("data-l10n-id");
-          let infoItemInfo = infoItem.shadowRoot.children[2].innerText;
-
-          let adjustedCertsElemLabel = adjustedCertsElem.sectionItems[i].label;
-          if (adjustedCertsElemLabel == null) {
-            adjustedCertsElemLabel = "";
-          }
-          adjustedCertsElemLabel = adjustedCertsElemLabel
-            .replace(/\s+/g, "-")
-            .toLowerCase();
-
-          let adjustedCertsElemInfo = adjustedCertsElem.sectionItems[i].info;
-          if (adjustedCertsElemInfo == null) {
-            adjustedCertsElemInfo = "";
-          }
-
-          if (typeof adjustedCertsElemInfo !== "string") {
-            // there is a case where we have a boolean
-            adjustedCertsElemInfo = adjustedCertsElemInfo.toString();
-          }
-
-          Assert.ok(
-            infoItemLabel.includes(adjustedCertsElemLabel),
-            "data-l10n-id must contain the original label"
-          );
-
-          if (
-            // we are skiping this cases because we are going to compare them
-            // with their UTC, e.g: timestampUTC
-            !(
-              adjustedCertsElemLabel === "timestamp" ||
-              adjustedCertsElemLabel === "not-after" ||
-              adjustedCertsElemLabel === "not-before"
-            )
-          ) {
-            Assert.equal(
-              infoItemInfo,
-              adjustedCertsElemInfo,
-              "Info must be equal"
-            );
-          }
-
-          i++;
-        }
-      }
-    });
-  });
-});