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 525679 bda705ea201f2bbc11f260d7691ad1c69029c424
parent 525678 9d77f46fc075dcbfeb83fa55c39245f93bc2f2d5
child 525680 4f154c1d9d9fbc34a6a237613f79909d0448aa79
push id2032
push userffxbld-merge
push dateMon, 13 May 2019 09:36:57 +0000
treeherdermozilla-release@455c1065dcbe [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);
 }