Bug 1546599 - Reset FxA avatar menu title on logout r=Gijs a=pascalc
authorVijay Budhram <vbudhram@mozilla.com>
Wed, 24 Apr 2019 22:41:27 +0000
changeset 526441 da1aee264bc8bf07a170e713e2f8a23efcda0cb8
parent 526440 f3c6c8bbbc1089b9b199f5fcad3bef3769adb447
child 526442 c08fdc0f28c2653f44f242928d0d4e5d9a62e4fb
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
bugs1546599
milestone67.0
Bug 1546599 - Reset FxA avatar menu title on logout r=Gijs a=pascalc Differential Revision: https://phabricator.services.mozilla.com/D28712
browser/base/content/browser-sync.js
--- a/browser/base/content/browser-sync.js
+++ b/browser/base/content/browser-sync.js
@@ -307,16 +307,17 @@ var gSync = {
 
     const mainWindowEl = document.documentElement;
 
     // The Firefox Account toolbar currently handles 3 different states for
     // users. The default `not_configured state shows an empty avatar, `unverified`
     // state shows an avatar with an email icon and the `verified` state will show
     // the users custom profile image or a filled avatar.
     let stateValue = "not_configured";
+    document.getElementById("PanelUI-fxa").removeAttribute("title");
     if (state.status === UIState.STATUS_LOGIN_FAILED || state.status === UIState.STATUS_NOT_VERIFIED) {
       stateValue = "unverified";
     } else if (state.status === UIState.STATUS_SIGNED_IN) {
       stateValue = "signedin";
       // Firefox Account specifies a `default` avatar image that uses the convention
       // of all 0s in url. The default used in the design of the toolbar menu is
       // different from the one provided by Firefox Account. Perform a check and only
       // change avatar *if* this is not a default avatar.