mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 480953 - Identity button should appear pressed when opening the identity popup. r=gavin
This commit is contained in:
parent
3ac8f64a91
commit
e26456ba12
@ -6680,6 +6680,14 @@ var gIdentityHandler = {
|
||||
if (gURLBar.getAttribute("chromedir") == "rtl")
|
||||
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
|
||||
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 {
|
||||
-moz-padding-start: 0;
|
||||
}
|
||||
@ -1904,16 +1899,19 @@ tabpanels.plain {
|
||||
}
|
||||
|
||||
/* - Active state */
|
||||
#identity-box.verifiedDomain[open="true"],
|
||||
#identity-box.verifiedDomain:hover:active {
|
||||
background-image: url("chrome://browser/skin/urlbar/startcap-secure-start-active.png");
|
||||
}
|
||||
|
||||
#identity-box.verifiedDomain[open="true"] > hbox,
|
||||
#identity-box.verifiedDomain:hover:active > hbox {
|
||||
padding: 0;
|
||||
background: url("chrome://browser/skin/urlbar/startcap-secure-mid-active.png") repeat-x center center;
|
||||
-moz-box-pack: center;
|
||||
}
|
||||
|
||||
#identity-box.verifiedDomain[open="true"] > 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;
|
||||
}
|
||||
@ -1955,14 +1953,17 @@ tabpanels.plain {
|
||||
}
|
||||
|
||||
/* - Active state */
|
||||
#identity-box.verifiedIdentity[open="true"],
|
||||
#identity-box.verifiedIdentity:hover:active {
|
||||
background-image: url("chrome://browser/skin/urlbar/startcap-verified-start-active.png");
|
||||
}
|
||||
|
||||
#identity-box.verifiedIdentity[open="true"] > hbox,
|
||||
#identity-box.verifiedIdentity:hover:active > hbox {
|
||||
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 {
|
||||
background: url("chrome://browser/skin/urlbar/startcap-verified-end-active.png") no-repeat center right;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user