Bug 1546599 - Reset FxA avatar menu title on logout r=Gijs
authorVijay Budhram <vbudhram@mozilla.com>
Wed, 24 Apr 2019 22:41:27 +0000
changeset 471221 542aa98191211b92dec7bb0eae8e8c1cd6f69cd7
parent 471220 23fa85727bd08cecb31c0bd43f27d9507a6189a6
child 471222 18c6cc260c2775694c5d1cf5350b8b3f04fcb97c
push id35912
push userbtara@mozilla.com
push dateThu, 25 Apr 2019 09:46:25 +0000
treeherdermozilla-central@0ec836eceb96 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1546599
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1546599 - Reset FxA avatar menu title on logout r=Gijs 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
@@ -302,16 +302,17 @@ var gSync = {
   updateFxAPanel(state = {}) {
     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.