зеркало из https://github.com/mozilla/gecko-dev.git
Change "More information" link in identity popup to button. b=414872, r=gavin, ui-r=beltzner, a=beltzner
This commit is contained in:
Родитель
8d96d623a6
Коммит
8967aa6ec1
|
@ -5799,14 +5799,12 @@ IdentityHandler.prototype = {
|
|||
},
|
||||
|
||||
/**
|
||||
* Handler for mouseclicks on the "Tell me more about this website" link text
|
||||
* in the "identity-popup" panel.
|
||||
* Handler for mouseclicks on the "More Information" button in the
|
||||
* "identity-popup" panel.
|
||||
*/
|
||||
handleMoreInfoClick : function(event) {
|
||||
if (event.button == 0) {
|
||||
displaySecurityInfo();
|
||||
event.stopPropagation();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -168,7 +168,7 @@
|
|||
|
||||
<!-- Popup for site identity information -->
|
||||
<panel id="identity-popup" position="after_start" hidden="true" noautofocus="true"
|
||||
onpopupshown="document.getElementById('identity-popup-more-info-link').focus();"
|
||||
onpopupshown="document.getElementById('identity-popup-more-info-button').focus();"
|
||||
onpopuphidden="focusAndSelectUrlBar();" norestorefocus="true">
|
||||
<hbox id="identity-popup-container" align="top">
|
||||
<image id="identity-popup-icon"/>
|
||||
|
@ -189,12 +189,14 @@
|
|||
<description id="identity-popup-encryption-label" flex="1"/>
|
||||
</hbox>
|
||||
<spacer flex="1"/>
|
||||
<!-- Footer link to page info -->
|
||||
<label id="identity-popup-more-info-link"
|
||||
class="text-link plain"
|
||||
value="&identity.moreInfoLinkText;"
|
||||
<!-- Footer button to open security page info -->
|
||||
<hbox>
|
||||
<spacer flex="1"/>
|
||||
<button id="identity-popup-more-info-button"
|
||||
label="&identity.moreInfoLinkText;"
|
||||
onblur="getIdentityHandler().hideIdentityPopup();"
|
||||
onclick="getIdentityHandler().handleMoreInfoClick(event);"/>
|
||||
oncommand="getIdentityHandler().handleMoreInfoClick(event);"/>
|
||||
</hbox>
|
||||
</vbox>
|
||||
</hbox>
|
||||
</panel>
|
||||
|
|
Загрузка…
Ссылка в новой задаче