Bug 1541459 - Removes additional securityOnLoad function call. r=johannh
authordanielleleb <danielleleb12@gmail.com>
Mon, 29 Apr 2019 17:40:19 +0000
changeset 530633 3a10833865f1ba444cd6be44b0ef3f951cfd90e1
parent 530632 02577b646f622d8ac7e33b5b2cd315c8b28fdb1c
child 530634 613c0da061aaac4eed66ed7c94ef0509c49f5ae6
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjohannh
bugs1541459
milestone68.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 1541459 - Removes additional securityOnLoad function call. r=johannh Differential Revision: https://phabricator.services.mozilla.com/D27099
browser/base/content/pageinfo/pageInfo.js
--- a/browser/base/content/pageinfo/pageInfo.js
+++ b/browser/base/content/pageinfo/pageInfo.js
@@ -314,30 +314,16 @@ async function onLoadPageInfo() {
 }
 
 function loadPageInfo(frameOuterWindowID, imageElement, browser) {
   browser = browser || window.opener.gBrowser.selectedBrowser;
   let mm = browser.messageManager;
 
   let imageInfo = imageElement;
 
-  // Generate security information if it is a security error page.
-  let documentURI = browser.documentURI.spec;
-  if (documentURI.startsWith("about:certerror")) {
-    let hostName = null;
-    try {
-      hostName = browser.currentURI.displayHost;
-    } catch (exception) { }
-    let info = {
-      isTopWindow: !!frameOuterWindowID,
-      hostName,
-    };
-    securityOnLoad(documentURI, info);
-  }
-
   // Look for pageInfoListener in content.js. Sends message to listener with arguments.
   mm.sendAsyncMessage("PageInfo:getData", {strings: gStrings, frameOuterWindowID});
 
   let pageInfoData;
 
   // Get initial pageInfoData needed to display the general, permission and security tabs.
   mm.addMessageListener("PageInfo:data", async function onmessage(message) {
     mm.removeMessageListener("PageInfo:data", onmessage);