Bug 1580115 - Fix fxa menu disconnected avatar a=lizzard
authorVijay Budhram <vbudhram@mozilla.com>
Tue, 24 Sep 2019 05:53:02 +0300
changeset 552317 fbf79b038eb751c4f528087735e4171701334ec8
parent 552316 d69eab8be1bf6f591138af54dc383748f239cfeb
child 552318 ecedb785928494238ece6311e003e96e9eb763fb
push id12143
push usershindli@mozilla.com
push dateWed, 09 Oct 2019 08:42:51 +0000
treeherdermozilla-beta@ce231a76c7bb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslizzard
bugs1580115
milestone70.0
Bug 1580115 - Fix fxa menu disconnected avatar a=lizzard Differential Revision: https://phabricator.services.mozilla.com//D46799
browser/base/content/browser-sync.js
--- a/browser/base/content/browser-sync.js
+++ b/browser/base/content/browser-sync.js
@@ -413,16 +413,17 @@ var gSync = {
       mainWindowEl.style.removeProperty("--avatar-image-url");
     } else if (state.status === UIState.STATUS_LOGIN_FAILED) {
       stateValue = "unverified";
       headerTitle = this.fxaStrings.formatStringFromName(
         "account.reconnectToSync",
         [this.brandStrings.GetStringFromName("syncBrandShortName")]
       );
       headerDescription = state.email;
+      mainWindowEl.style.removeProperty("--avatar-image-url");
     } else if (state.status === UIState.STATUS_NOT_VERIFIED) {
       stateValue = "unverified";
       headerTitle = this.fxaStrings.GetStringFromName(
         "account.finishAccountSetup"
       );
       headerDescription = state.email;
     } else if (state.status === UIState.STATUS_SIGNED_IN) {
       stateValue = "signedin";