Bug 1312021 - ensure the addonsreconciler always has the isSyncable attribute. r=tcsc a=ritu
authorMark Hammond <mhammond@skippinet.com.au>
Tue, 25 Oct 2016 17:53:44 +1100
changeset 358614 2eef3810f7f87cccd3745724cf69b2ea24cde7e0
parent 358613 b44e1445660d445ff883584de9de069a765760e8
child 358615 b3a503af6c86c5972a58b81c46da05a2288e4018
push id1324
push usermtabara@mozilla.com
push dateMon, 16 Jan 2017 13:07:44 +0000
treeherdermozilla-release@a01c49833940 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstcsc, ritu
bugs1312021
milestone51.0a2
Bug 1312021 - ensure the addonsreconciler always has the isSyncable attribute. r=tcsc a=ritu MozReview-Commit-ID: AlYZCCrEvLV
services/sync/modules/addonsreconciler.js
--- a/services/sync/modules/addonsreconciler.js
+++ b/services/sync/modules/addonsreconciler.js
@@ -440,16 +440,17 @@ AddonsReconciler.prototype = {
       this._addons[id] = record;
       this._log.debug("Adding change because add-on not present locally: " +
                       id);
       this._addChange(now, CHANGE_INSTALLED, record);
       return;
     }
 
     let record = this._addons[id];
+    record.isSyncable = addon.isSyncable;
 
     if (!record.installed) {
       // It is possible the record is marked as uninstalled because an
       // uninstall is pending.
       if (!(addon.pendingOperations & AddonManager.PENDING_UNINSTALL)) {
         record.installed = true;
         record.modified = now;
       }