Bug 1430060 - Hide Security tab in Page Info when you are on about: pages r=johannh
authorArjun Krishna Babu <arjunkrishnababu96@gmail.com>
Tue, 13 Feb 2018 09:38:55 -0700
changeset 403709 077920036d7c
parent 403708 17b07b91a470
child 403710 0ee15b723c4a
push id33444
push userapavel@mozilla.com
push dateThu, 15 Feb 2018 09:59:25 +0000
treeherdermozilla-central@026401920e32 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjohannh
bugs1430060
milestone60.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 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 */