Bug 1537647 - fix focus on FxA menu when activated via keyboard r=Gijs, a=pascalc
authorVijay Budhram <vbudhram@mozilla.com>
Thu, 21 Mar 2019 18:22:49 +0000
changeset 525846 cfb2d7610755e1d487cea0e0fec537c8e36e639a
parent 525845 3876472b3140e3f85b5064bd2d8530dbbc8607d9
child 525847 0b05c9bed71b2c90b490dca27c38623236e90691
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
bugs1537647
milestone67.0
Bug 1537647 - fix focus on FxA menu when activated via keyboard r=Gijs, a=pascalc Differential Revision: https://phabricator.services.mozilla.com/D24381
browser/base/content/browser-sync.js
--- a/browser/base/content/browser-sync.js
+++ b/browser/base/content/browser-sync.js
@@ -289,17 +289,17 @@ var gSync = {
       Services.prefs.setBoolPref("identity.fxaccounts.toolbar.accessed", true);
       document.documentElement.removeAttribute("fxa_avatar_badged");
     }
 
     const anchor = document.getElementById("fxa-toolbar-menu-button");
     if (anchor.getAttribute("open") == "true") {
       PanelUI.hide();
     } else {
-      PanelUI.showSubView(viewId, anchor);
+      PanelUI.showSubView(viewId, anchor, aEvent);
     }
   },
 
   updateFxAToolbarPanel(state = {}) {
     if (!gFxaToolbarEnabled) {
       return;
     }