From a55a3e48844efe335852d9a4b81157d5bf4661a4 Mon Sep 17 00:00:00 2001 From: Gavin Sharp Date: Wed, 12 Mar 2014 18:53:35 -0700 Subject: [PATCH] Bug 982241: make the UI observe weave:service:setup-complete so that it gets updated correctly when re-signing in after an auth error, r=ttaubert Changes: * start observing weave:service:setup-complete to update the UI after all logins (re-auth, initial sign-in) * stop observing FxAccountsCommon.ONLOGIN_NOTIFICATION, since the state we depend on to update the UI never changes interestingly as a result of it firing --HG-- extra : rebase_source : 8632d597557b7a25ebc31dd53ad5680ac5a72583 --- browser/base/content/browser-fxaccounts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/base/content/browser-fxaccounts.js b/browser/base/content/browser-fxaccounts.js index 636bb9a2f1dd..57e6560febdd 100644 --- a/browser/base/content/browser-fxaccounts.js +++ b/browser/base/content/browser-fxaccounts.js @@ -27,7 +27,7 @@ let gFxAccounts = { "weave:service:ready", "weave:service:sync:start", "weave:service:login:error", - FxAccountsCommon.ONLOGIN_NOTIFICATION, + "weave:service:setup-complete", FxAccountsCommon.ONVERIFIED_NOTIFICATION, FxAccountsCommon.ONLOGOUT_NOTIFICATION ];