Bug 1319639 - update the browser UI on a sync error to ensure an auth error during a sync is correctly handled. r?kitcambridge draft
authorMark Hammond <mhammond@skippinet.com.au>
Tue, 29 Nov 2016 09:24:53 +1100
changeset 444824 b3c0aa6c17038333454144eb9b7b6d41bd6996ee
parent 444478 05328d3102efd4d5fc0696489734d7771d24459f
child 538405 c8a5125f82f84ad4d8d8d9436c574376e82f9723
push id37381
push userbmo:markh@mozilla.com
push dateMon, 28 Nov 2016 22:26:36 +0000
reviewerskitcambridge
bugs1319639
milestone53.0a1
Bug 1319639 - update the browser UI on a sync error to ensure an auth error during a sync is correctly handled. r?kitcambridge MozReview-Commit-ID: 3WrQu8fmrLx
browser/base/content/browser-fxaccounts.js
--- a/browser/base/content/browser-fxaccounts.js
+++ b/browser/base/content/browser-fxaccounts.js
@@ -18,16 +18,17 @@ var gFxAccounts = {
 
   get topics() {
     // Do all this dance to lazy-load FxAccountsCommon.
     delete this.topics;
     return this.topics = [
       "weave:service:ready",
       "weave:service:login:change",
       "weave:service:setup-complete",
+      "weave:service:sync:error",
       "weave:ui:login:error",
       "fxa-migration:state-changed",
       this.FxAccountsCommon.ONLOGIN_NOTIFICATION,
       this.FxAccountsCommon.ONLOGOUT_NOTIFICATION,
       this.FxAccountsCommon.ON_PROFILE_CHANGE_NOTIFICATION,
     ];
   },