mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 01:35:35 +00:00
Bug 1462471 - Link to permission preferences from the identity popup permissions section. r=prathiksha
MozReview-Commit-ID: 4XNBfztgWOG --HG-- extra : rebase_source : 713003dcc2e35aba0283797e96fe13559990d744
This commit is contained in:
parent
ff4d587dc8
commit
d34f805778
@ -247,6 +247,10 @@ var gIdentityHandler = {
|
||||
event.stopPropagation();
|
||||
},
|
||||
|
||||
openPermissionPreferences() {
|
||||
openPreferences("privacy-permissions", { origin: "identityPopup-permissions-PreferencesButton" });
|
||||
},
|
||||
|
||||
/**
|
||||
* Handler for mouseclicks on the "More Information" button in the
|
||||
* "identity-popup" panel.
|
||||
|
@ -108,9 +108,15 @@
|
||||
<hbox class="identity-popup-section"
|
||||
when-connection="not-secure secure secure-ev secure-cert-user-overridden file extension">
|
||||
<vbox id="identity-popup-permissions-content" flex="1">
|
||||
<label id="identity-popup-permissions-headline"
|
||||
class="identity-popup-headline"
|
||||
value="&identity.permissions;"/>
|
||||
<hbox class="identity-popup-preferences-button-container">
|
||||
<label id="identity-popup-permissions-headline"
|
||||
class="identity-popup-headline"
|
||||
value="&identity.permissions;"/>
|
||||
<toolbarbutton id="identity-popup-permission-preferences-button"
|
||||
class="identity-popup-preferences-button subviewbutton"
|
||||
tooltiptext="&identity.permissionsPreferences.tooltip;"
|
||||
oncommand="gIdentityHandler.openPermissionPreferences();" />
|
||||
</hbox>
|
||||
<vbox id="identity-popup-permission-list"/>
|
||||
<description id="identity-popup-permission-reload-hint">&identity.permissionsReloadHint;</description>
|
||||
<description id="identity-popup-permission-empty-hint">&identity.permissionsEmpty;</description>
|
||||
|
@ -385,7 +385,7 @@
|
||||
<groupbox id="permissionsGroup" data-category="panePrivacy" hidden="true">
|
||||
<caption class="search-header" hidden="true"><label data-l10n-id="permissions-header"/></caption>
|
||||
|
||||
<grid>
|
||||
<grid data-subcategory="permissions">
|
||||
<columns>
|
||||
<column flex="1"/>
|
||||
<column/>
|
||||
|
@ -800,6 +800,7 @@ you can use these alternative items. Otherwise, their values should be empty. -
|
||||
<!ENTITY identity.permissions "Permissions">
|
||||
<!ENTITY identity.permissionsEmpty "You have not granted this site any special permissions.">
|
||||
<!ENTITY identity.permissionsReloadHint "You may need to reload the page for changes to apply.">
|
||||
<!ENTITY identity.permissionsPreferences.tooltip "Open Permissions Preferences">
|
||||
|
||||
<!-- Name for the tabs toolbar as spoken by screen readers.
|
||||
The word "toolbar" is appended automatically and should not be contained below! -->
|
||||
|
Loading…
Reference in New Issue
Block a user