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
--- 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 */