Bug 465504 part 3: URL bar EV indicator in the Classic theme r=IanN
This commit is contained in:
Родитель
bff8ffba03
Коммит
e95f116113
|
@ -284,6 +284,8 @@
|
|||
<hbox id="urlbar-icons"
|
||||
class="urlbar-icons">
|
||||
<image id="feedsButton" hidden="true" popup="feedsPopup"/>
|
||||
<image id="ev-button" hidden="true"
|
||||
onclick="if (event.button == 0) BrowserPageInfo(null, 'securityTab');"/>
|
||||
</hbox>
|
||||
<menupopup id="ubhist-popup" class="autocomplete-history-popup"
|
||||
popupalign="topleft" popupanchor="bottomleft"
|
||||
|
|
|
@ -74,6 +74,7 @@ nsBrowserStatusHandler.prototype =
|
|||
this.statusTextField = document.getElementById("statusbar-display");
|
||||
this.isImage = document.getElementById("isImage");
|
||||
this.securityButton = document.getElementById("security-button");
|
||||
this.evButton = document.getElementById("ev-button");
|
||||
this.feedsMenu = document.getElementById("feedsMenu");
|
||||
this.feedsButton = document.getElementById("feedsButton");
|
||||
|
||||
|
@ -95,6 +96,7 @@ nsBrowserStatusHandler.prototype =
|
|||
this.statusTextField = null;
|
||||
this.isImage = null;
|
||||
this.securityButton = null;
|
||||
this.evButton = null;
|
||||
this.feedsButton = null;
|
||||
this.feedsMenu = null;
|
||||
},
|
||||
|
@ -395,14 +397,19 @@ nsBrowserStatusHandler.prototype =
|
|||
else
|
||||
this.securityButton.removeAttribute("tooltiptext");
|
||||
|
||||
if (aState & wpl.STATE_IDENTITY_EV_TOPLEVEL)
|
||||
this.securityButton.setAttribute("label",
|
||||
if (aState & wpl.STATE_IDENTITY_EV_TOPLEVEL) {
|
||||
var organization =
|
||||
securityUI.QueryInterface(Components.interfaces.nsISSLStatusProvider)
|
||||
.SSLStatus
|
||||
.QueryInterface(Components.interfaces.nsISSLStatus)
|
||||
.serverCert.organization);
|
||||
else
|
||||
.serverCert.organization;
|
||||
this.securityButton.setAttribute("label", organization);
|
||||
this.evButton.setAttribute("tooltiptext", organization);
|
||||
this.evButton.hidden = false;
|
||||
} else {
|
||||
this.securityButton.removeAttribute("label");
|
||||
this.evButton.hidden = true;
|
||||
}
|
||||
},
|
||||
|
||||
startDocumentLoad : function(aRequest)
|
||||
|
|
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 616 B |
|
@ -78,6 +78,7 @@ classic.jar:
|
|||
skin/classic/communicator/icons/offline.png (communicator/icons/offline.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/identity.png (communicator/icons/identity.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-insecure.png (communicator/icons/lock-insecure.png)
|
||||
|
|
|
@ -487,6 +487,10 @@ toolbar[mode="icons"] #search-button > .button-box > .button-text {
|
|||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
#ev-button {
|
||||
list-style-image: url("chrome://communicator/skin/icons/identity.png");
|
||||
}
|
||||
|
||||
#popupIcon {
|
||||
list-style-image: url("chrome://navigator/skin/icons/popup-blocked.png");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче