From f7aee1cb026d467cd917538b3d17cb0a3dea7031 Mon Sep 17 00:00:00 2001 From: "cltbld%netscape.com" Date: Thu, 19 Aug 1999 02:36:05 +0000 Subject: [PATCH] backing out dougt --- xpfe/browser/src/navigator-test1.xul | 40 ++++++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/xpfe/browser/src/navigator-test1.xul b/xpfe/browser/src/navigator-test1.xul index 27248775c8a5..e03358f66e58 100644 --- a/xpfe/browser/src/navigator-test1.xul +++ b/xpfe/browser/src/navigator-test1.xul @@ -611,7 +611,41 @@ dump("Can't find status broadcaster!\n"); } } - + + function onSecurity() { + var security = document.getElementById("Browser:Security"); + var indicator = document.getElementById("security-box"); + var icon = document.getElementById("security-button"); + + if ( security.getAttribute("secure") == "true" ) { + indicator.setAttribute("class","secure"); + icon.setAttribute("class","secure"); + } else { + indicator.setAttribute("class","insecure"); + icon.setAttribute("class","insecure"); + } + } + + function securityOn() { + var security = document.getElementById("Browser:Security"); + if ( security.getAttribute("secure") == "false" ) { + security.setAttribute("secure","true"); + // Temporary till onchange handlers work. + onSecurity(); + } + } + function securityOff() { + var security = document.getElementById("Browser:Security"); + if ( security.getAttribute("secure") == "true" ) { + security.setAttribute("secure","false"); + // Temporary till onchange handlers work. + onSecurity(); + } + } + function doTests() { + // Turn security on. + securityOn(); + } function onStartBinding() { bindCount++; if ( bindCount == 1 ) { @@ -674,11 +708,12 @@ + - + @@ -697,6 +732,7 @@ +