diff --git a/mozilla/xpfe/browser/src/navigator-test1.xul b/mozilla/xpfe/browser/src/navigator-test1.xul
index 27248775c8a..e03358f66e5 100644
--- a/mozilla/xpfe/browser/src/navigator-test1.xul
+++ b/mozilla/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 @@
+