Bug 1288877 - prevent bookmarks batch operations from triggering a continious sync.r=tcsc
authorMark Hammond <mhammond@skippinet.com.au>
Sat, 23 Jul 2016 10:43:04 +1000
changeset 346310 6fb55e17cd0279ade680b87ad9bc2d03424affc3
parent 346309 933fcf81f9c8661398b077014802441440a84955
child 346311 3f5a9799b9feabdd49dfd73d03c4bf0e3514ee3b
push id6389
push userraliiev@mozilla.com
push dateMon, 19 Sep 2016 13:38:22 +0000
treeherdermozilla-beta@01d67bfe6c81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstcsc
bugs1288877
milestone50.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 1288877 - prevent bookmarks batch operations from triggering a continious sync.r=tcsc MozReview-Commit-ID: L2zh6owKH4S
services/sync/modules/engines/bookmarks.js
--- a/services/sync/modules/engines/bookmarks.js
+++ b/services/sync/modules/engines/bookmarks.js
@@ -1531,12 +1531,13 @@ BookmarksTracker.prototype = {
   },
 
   onBeginUpdateBatch: function () {
     ++this._batchDepth;
   },
   onEndUpdateBatch: function () {
     if (--this._batchDepth === 0 && this._batchSawScoreIncrement) {
       this.score += SCORE_INCREMENT_XLARGE;
+      this._batchSawScoreIncrement = false;
     }
   },
   onItemVisited: function () {}
 };