From 4fc8c979f9b77b6c5263d4a47a75e504802056a5 Mon Sep 17 00:00:00 2001 From: "kaie%netscape.com" Date: Thu, 30 May 2002 04:56:16 +0000 Subject: [PATCH] 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 --- .../pki/resources/content/PageInfoOverlay.xul | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/mozilla/security/manager/pki/resources/content/PageInfoOverlay.xul b/mozilla/security/manager/pki/resources/content/PageInfoOverlay.xul index 6db90604c8c..64fcb131559 100644 --- a/mozilla/security/manager/pki/resources/content/PageInfoOverlay.xul +++ b/mozilla/security/manager/pki/resources/content/PageInfoOverlay.xul @@ -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;