b=138479 Disable Security tab in View Frame Info

r=javi sr=jag


git-svn-id: svn://10.0.0.236/trunk@122317 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kaie%netscape.com
2002-05-30 04:56:16 +00:00
parent 308c6661ba
commit 4fc8c979f9

View File

@@ -47,8 +47,14 @@
// Get the window for this information
var w;
if ("arguments" in window && window.arguments.length > 1 && window.arguments[0])
if ("arguments" in window && window.arguments.length > 0 && window.arguments[0])
{
w = window.arguments[0];
// We don't have separate info for a frame, return null until further notice
// (see bug 138479)
return null;
}
else if ("gBrowser" in window.opener)
w = window.opener.gBrowser.contentWindow;
else
@@ -122,6 +128,11 @@
var bundle = srGetStrBundle("chrome://pippki/locale/pippki.properties");
var info = security._getSecurityInfo();
if (!info) {
document.getElementById("securityTab").setAttribute("hidden", true);
return;
}
var idHdr;
var message1;
var message2;