Bug 1534447 - Add application menu item to show Logins & Passwords. r=Gijs a=pascalc
authorNarcis Beleuzu <nbeleuzu@mozilla.com>
Sat, 23 Mar 2019 18:33:59 +0200
changeset 522681 bda705ea201f
parent 522680 9d77f46fc075
child 522682 4f154c1d9d9f
push id10902
push usernbeleuzu@mozilla.com
push dateSat, 23 Mar 2019 16:42:54 +0000
treeherdermozilla-beta@1a3cbe1453e4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs, pascalc
bugs1534447
milestone67.0
Bug 1534447 - Add application menu item to show Logins & Passwords. r=Gijs a=pascalc Reviewers: Gijs Reviewed By: Gijs Subscribers: MattN Bug #: 1534447 Differential Revision: https://phabricator.services.mozilla.com/D23737
browser/components/customizableui/content/panelUI.inc.xul
browser/themes/shared/menupanel.inc.css
--- a/browser/components/customizableui/content/panelUI.inc.xul
+++ b/browser/components/customizableui/content/panelUI.inc.xul
@@ -322,16 +322,21 @@
                          tooltip="dynamic-shortcut-tooltip"/>
         </toolbaritem>
         <toolbarseparator/>
         <toolbarbutton id="appMenu-library-button"
                        class="subviewbutton subviewbutton-iconic subviewbutton-nav"
                        label="&places.library.title;"
                        closemenu="none"
                        oncommand="PanelUI.showSubView('appMenu-libraryView', this)"/>
+        <toolbarbutton id="appMenu-logins-button"
+                       class="subviewbutton subviewbutton-iconic"
+                       label="&logins.label;"
+                       oncommand="LoginHelper.openPasswordManager(window)"
+                       />
         <toolbarbutton id="appMenu-addons-button"
                        class="subviewbutton subviewbutton-iconic"
                        label="&addons.label;"
                        key="key_openAddons"
                        command="Tools:Addons"
                        />
         <toolbarbutton id="appMenu-preferences-button"
                        class="subviewbutton subviewbutton-iconic"
--- a/browser/themes/shared/menupanel.inc.css
+++ b/browser/themes/shared/menupanel.inc.css
@@ -11,16 +11,20 @@
 #appMenu-print-button {
   list-style-image: url(chrome://browser/skin/print.svg);
 }
 
 #appMenu-library-button {
   list-style-image: url(chrome://browser/skin/library.svg);
 }
 
+#appMenu-logins-button {
+  list-style-image: url(chrome://browser/skin/login.svg);
+}
+
 #appMenu-addons-button {
   list-style-image: url(chrome://mozapps/skin/extensions/extensionGeneric-16.svg);
 }
 
 #appMenu-preferences-button {
   list-style-image: url(chrome://browser/skin/settings.svg);
 }