Adding handles to the various security states. This version has workaround using static color values and missing the security icon.

This commit is contained in:
mgalli%geckonnection.com 2005-08-08 22:03:09 +00:00
Родитель f404a1f5d0
Коммит bbcbfd0f31
1 изменённых файлов: 19 добавлений и 1 удалений

Просмотреть файл

@ -161,7 +161,25 @@ nsBrowserStatusHandler.prototype =
{
/* Color is temporary. We shall dynamically assign a new class to the element and or to
evaluate access from another class rule, the security identity color has to be with the minimo.css */
document.styleSheets[1].cssRules[0].style.backgroundColor="yellow";
switch (aState) {
case nsIWebProgressListener.STATE_IS_SECURE | nsIWebProgressListener.STATE_SECURE_HIGH:
//this.urlBar.value="level high";
document.styleSheets[1].cssRules[0].style.backgroundColor="yellow";
break;
case nsIWebProgressListener.STATE_IS_SECURE | nsIWebProgressListener.STATE_SECURE_LOW:
// this.urlBar.value="level low";
document.styleSheets[1].cssRules[0].style.backgroundColor="lightyellow";
break;
case nsIWebProgressListener.STATE_IS_BROKEN:
//this.urlBar.value="level broken";
document.styleSheets[1].cssRules[0].style.backgroundColor="lightred";
break;
case nsIWebProgressListener.STATE_IS_INSECURE:
default:
document.styleSheets[1].cssRules[0].style.backgroundColor="white";
break;
}
}
}