Bug 335113 More obvious secure site indication p=zug_treno@yahoo.com r=db48x,jag sr=me

This commit is contained in:
neil%parkwaycc.co.uk 2006-07-02 16:18:58 +00:00
parent 2c39937d84
commit de277db377
3 changed files with 15 additions and 0 deletions

View File

@ -195,6 +195,12 @@
-moz-border-left-colors: transparent ThreeDShadow ThreeDDarkShadow;
}
#urlbar[level="high"] > .autocomplete-textbox-container,
#urlbar[level="low"] > .autocomplete-textbox-container {
background-color: InfoBackground;
color: InfoText;
}
/* ::::: page proxy icon ::::: */
#page-proxy-deck,

View File

@ -418,6 +418,11 @@ toolbox {
background: url("chrome://navigator/skin/toolbar/urlbar-mid.gif") #EDF5F7 bottom repeat-x;
}
#urlbar[level="high"] ,
#urlbar[level="low"] {
background: #E8DB99;
}
/* ::::: page proxy icon ::::: */
#page-proxy-deck,

View File

@ -393,16 +393,20 @@ nsBrowserStatusHandler.prototype =
switch (aState) {
case wpl.STATE_IS_SECURE | wpl.STATE_SECURE_HIGH:
this.securityButton.setAttribute("level", "high");
this.urlBar.setAttribute("level", "high");
break;
case wpl.STATE_IS_SECURE | wpl.STATE_SECURE_LOW:
this.securityButton.setAttribute("level", "low");
this.urlBar.setAttribute("level", "low");
break;
case wpl.STATE_IS_BROKEN:
this.securityButton.setAttribute("level", "broken");
this.urlBar.setAttribute("level", "broken");
break;
case wpl.STATE_IS_INSECURE:
default:
this.securityButton.removeAttribute("level");
this.urlBar.removeAttribute("level");
break;
}