Bug 1430060 - Hide Security tab in Page Info when you are on about: pages r?johannh draft
authorArjun Krishna Babu <arjunkrishnababu96@gmail.com>
Tue, 13 Feb 2018 09:38:55 -0700
changeset 754467 6db3466c5f97
parent 752153 65133e49fbfd
push id98887
push userbmo:arjunkrishnababu96@gmail.com
push dateTue, 13 Feb 2018 16:39:35 +0000
reviewersjohannh
bugs1430060
milestone60.0a1
Bug 1430060 - Hide Security tab in Page Info when you are on about: pages r?johannh The contents in Security tab when you're in about: pages is useless or wrong. MozReview-Commit-ID: Eq5tdKyvuho
browser/base/content/pageinfo/security.js
--- a/browser/base/content/pageinfo/security.js
+++ b/browser/base/content/pageinfo/security.js
@@ -164,17 +164,17 @@ var security = {
 
   _cert: null
 };
 
 function securityOnLoad(uri, windowInfo) {
   security.init(uri, windowInfo);
 
   var info = security._getSecurityInfo();
-  if (!info) {
+  if (!info || uri.scheme === "about") {
     document.getElementById("securityTab").hidden = true;
     return;
   }
   document.getElementById("securityTab").hidden = false;
 
   const pageInfoBundle = document.getElementById("pageinfobundle");
 
   /* Set Identity section text */