Bug 480953 - Identity button should appear pressed when opening the identity popup. r=gavin

This commit is contained in:
Dão Gottwald 2009-03-02 21:01:03 +01:00
Родитель 8ca1fb0753
Коммит d8257ed922
2 изменённых файлов: 14 добавлений и 5 удалений

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

@ -6680,6 +6680,14 @@ var gIdentityHandler = {
if (gURLBar.getAttribute("chromedir") == "rtl") if (gURLBar.getAttribute("chromedir") == "rtl")
position = 'after_end'; position = 'after_end';
// Add the "open" attribute to the identity box for styling
this._identityBox.setAttribute("open", "true");
var self = this;
this._identityPopup.addEventListener("popuphidden", function (e) {
e.currentTarget.removeEventListener("popuphidden", arguments.callee, false);
self._identityBox.removeAttribute("open");
}, false);
// Now open the popup, anchored off the primary chrome element // Now open the popup, anchored off the primary chrome element
this._identityPopup.openPopup(this._identityBox, position); this._identityPopup.openPopup(this._identityBox, position);
} }

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

@ -897,11 +897,6 @@ toolbar[iconsize="small"] #unified-back-forward-button > #back-forward-dropmarke
} }
#identity-box:active > #page-proxy-stack,
#identity-box[open="true"] > #page-proxy-stack {
opacity: 0.75;
}
statusbarpanel#statusbar-display { statusbarpanel#statusbar-display {
-moz-padding-start: 0; -moz-padding-start: 0;
} }
@ -1904,16 +1899,19 @@ tabpanels.plain {
} }
/* - Active state */ /* - Active state */
#identity-box.verifiedDomain[open="true"],
#identity-box.verifiedDomain:hover:active { #identity-box.verifiedDomain:hover:active {
background-image: url("chrome://browser/skin/urlbar/startcap-secure-start-active.png"); background-image: url("chrome://browser/skin/urlbar/startcap-secure-start-active.png");
} }
#identity-box.verifiedDomain[open="true"] > hbox,
#identity-box.verifiedDomain:hover:active > hbox { #identity-box.verifiedDomain:hover:active > hbox {
padding: 0; padding: 0;
background: url("chrome://browser/skin/urlbar/startcap-secure-mid-active.png") repeat-x center center; background: url("chrome://browser/skin/urlbar/startcap-secure-mid-active.png") repeat-x center center;
-moz-box-pack: center; -moz-box-pack: center;
} }
#identity-box.verifiedDomain[open="true"] > hbox > #identity-icon-label,
#identity-box.verifiedDomain:hover:active > hbox > #identity-icon-label { #identity-box.verifiedDomain:hover:active > hbox > #identity-icon-label {
background: url("chrome://browser/skin/urlbar/startcap-secure-end-active.png") no-repeat center right; background: url("chrome://browser/skin/urlbar/startcap-secure-end-active.png") no-repeat center right;
} }
@ -1955,14 +1953,17 @@ tabpanels.plain {
} }
/* - Active state */ /* - Active state */
#identity-box.verifiedIdentity[open="true"],
#identity-box.verifiedIdentity:hover:active { #identity-box.verifiedIdentity:hover:active {
background-image: url("chrome://browser/skin/urlbar/startcap-verified-start-active.png"); background-image: url("chrome://browser/skin/urlbar/startcap-verified-start-active.png");
} }
#identity-box.verifiedIdentity[open="true"] > hbox,
#identity-box.verifiedIdentity:hover:active > hbox { #identity-box.verifiedIdentity:hover:active > hbox {
background: url("chrome://browser/skin/urlbar/startcap-verified-mid-active.png") repeat-x center center; background: url("chrome://browser/skin/urlbar/startcap-verified-mid-active.png") repeat-x center center;
} }
#identity-box.verifiedIdentity[open="true"] > hbox > #identity-icon-label,
#identity-box.verifiedIdentity:hover:active > hbox > #identity-icon-label { #identity-box.verifiedIdentity:hover:active > hbox > #identity-icon-label {
background: url("chrome://browser/skin/urlbar/startcap-verified-end-active.png") no-repeat center right; background: url("chrome://browser/skin/urlbar/startcap-verified-end-active.png") no-repeat center right;
} }