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 340860 2eef3810f7f87cccd3745724cf69b2ea24cde7e0
parent 340859 b44e1445660d445ff883584de9de069a765760e8
child 340861 b3a503af6c86c5972a58b81c46da05a2288e4018
push id10235
push userkwierso@gmail.com
push dateTue, 01 Nov 2016 17:29:49 +0000
treeherdermozilla-aurora@3c4ab75a8bcb [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;
       }