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 403666 077920036d7c
parent 403665 17b07b91a470
child 403667 0ee15b723c4a
push id59587
push userarchaeopteryx@coole-files.de
push dateWed, 14 Feb 2018 19:46:19 +0000
treeherderautoland@077920036d7c [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 */