Bug 465504 part 3: URL bar EV indicator in the Classic theme r=IanN

This commit is contained in:
Neil Rashbrook 2009-06-10 23:55:02 +01:00
Родитель bff8ffba03
Коммит e95f116113
5 изменённых файлов: 18 добавлений и 4 удалений

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

@ -284,6 +284,8 @@
<hbox id="urlbar-icons" <hbox id="urlbar-icons"
class="urlbar-icons"> class="urlbar-icons">
<image id="feedsButton" hidden="true" popup="feedsPopup"/> <image id="feedsButton" hidden="true" popup="feedsPopup"/>
<image id="ev-button" hidden="true"
onclick="if (event.button == 0) BrowserPageInfo(null, 'securityTab');"/>
</hbox> </hbox>
<menupopup id="ubhist-popup" class="autocomplete-history-popup" <menupopup id="ubhist-popup" class="autocomplete-history-popup"
popupalign="topleft" popupanchor="bottomleft" popupalign="topleft" popupanchor="bottomleft"

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

@ -74,6 +74,7 @@ nsBrowserStatusHandler.prototype =
this.statusTextField = document.getElementById("statusbar-display"); this.statusTextField = document.getElementById("statusbar-display");
this.isImage = document.getElementById("isImage"); this.isImage = document.getElementById("isImage");
this.securityButton = document.getElementById("security-button"); this.securityButton = document.getElementById("security-button");
this.evButton = document.getElementById("ev-button");
this.feedsMenu = document.getElementById("feedsMenu"); this.feedsMenu = document.getElementById("feedsMenu");
this.feedsButton = document.getElementById("feedsButton"); this.feedsButton = document.getElementById("feedsButton");
@ -95,6 +96,7 @@ nsBrowserStatusHandler.prototype =
this.statusTextField = null; this.statusTextField = null;
this.isImage = null; this.isImage = null;
this.securityButton = null; this.securityButton = null;
this.evButton = null;
this.feedsButton = null; this.feedsButton = null;
this.feedsMenu = null; this.feedsMenu = null;
}, },
@ -395,14 +397,19 @@ nsBrowserStatusHandler.prototype =
else else
this.securityButton.removeAttribute("tooltiptext"); this.securityButton.removeAttribute("tooltiptext");
if (aState & wpl.STATE_IDENTITY_EV_TOPLEVEL) if (aState & wpl.STATE_IDENTITY_EV_TOPLEVEL) {
this.securityButton.setAttribute("label", var organization =
securityUI.QueryInterface(Components.interfaces.nsISSLStatusProvider) securityUI.QueryInterface(Components.interfaces.nsISSLStatusProvider)
.SSLStatus .SSLStatus
.QueryInterface(Components.interfaces.nsISSLStatus) .QueryInterface(Components.interfaces.nsISSLStatus)
.serverCert.organization); .serverCert.organization;
else this.securityButton.setAttribute("label", organization);
this.evButton.setAttribute("tooltiptext", organization);
this.evButton.hidden = false;
} else {
this.securityButton.removeAttribute("label"); this.securityButton.removeAttribute("label");
this.evButton.hidden = true;
}
}, },
startDocumentLoad : function(aRequest) startDocumentLoad : function(aRequest)

Двоичные данные
suite/themes/classic/communicator/icons/identity.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 616 B

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

@ -78,6 +78,7 @@ classic.jar:
skin/classic/communicator/icons/offline.png (communicator/icons/offline.png) skin/classic/communicator/icons/offline.png (communicator/icons/offline.png)
skin/classic/communicator/icons/online.png (communicator/icons/online.png) skin/classic/communicator/icons/online.png (communicator/icons/online.png)
skin/classic/communicator/icons/search.png (communicator/icons/search.png) skin/classic/communicator/icons/search.png (communicator/icons/search.png)
skin/classic/communicator/icons/identity.png (communicator/icons/identity.png)
skin/classic/communicator/icons/lock-secure.png (communicator/icons/lock-secure.png) skin/classic/communicator/icons/lock-secure.png (communicator/icons/lock-secure.png)
skin/classic/communicator/icons/lock-broken.png (communicator/icons/lock-broken.png) skin/classic/communicator/icons/lock-broken.png (communicator/icons/lock-broken.png)
skin/classic/communicator/icons/lock-insecure.png (communicator/icons/lock-insecure.png) skin/classic/communicator/icons/lock-insecure.png (communicator/icons/lock-insecure.png)

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

@ -487,6 +487,10 @@ toolbar[mode="icons"] #search-button > .button-box > .button-text {
color: #FFFFFF; color: #FFFFFF;
} }
#ev-button {
list-style-image: url("chrome://communicator/skin/icons/identity.png");
}
#popupIcon { #popupIcon {
list-style-image: url("chrome://navigator/skin/icons/popup-blocked.png"); list-style-image: url("chrome://navigator/skin/icons/popup-blocked.png");
} }