Bug 1580115 - Fix fxa menu disconnected avatar r=eoger,markh
authorVijay Budhram <vbudhram@mozilla.com>
Tue, 24 Sep 2019 02:53:02 +0000
changeset 494620 0c2c86f22204ad5c7e3abcb11957fd18f9c41c38
parent 494619 e9b09f4047b81f1e716db6bc05911acd6094962e
child 494621 6a1f7dcb1266d47857db1895ca9cc12ca9eeff45
push id36611
push usercbrindusan@mozilla.com
push dateTue, 24 Sep 2019 09:43:48 +0000
treeherdermozilla-central@79b08a0a1c3f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerseoger, markh
bugs1580115
milestone71.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 1580115 - Fix fxa menu disconnected avatar r=eoger,markh 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
@@ -420,16 +420,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";