Bug 1166853 - Sync "hangs" when trying to apply a livemark to a reconciled folder. r=rnewman

This commit is contained in:
Marco Bonardo 2015-05-22 19:02:44 +02:00
parent 94406565e7
commit 37616243f9

View File

@ -771,7 +771,10 @@ BookmarksStore.prototype = {
guid: record.id}; guid: record.id};
PlacesUtils.livemarks.addLivemark(livemarkObj).then( PlacesUtils.livemarks.addLivemark(livemarkObj).then(
aLivemark => { spinningCb(null, [Components.results.NS_OK, aLivemark]) }, aLivemark => { spinningCb(null, [Components.results.NS_OK, aLivemark]) },
() => { spinningCb(null, [Components.results.NS_ERROR_UNEXPECTED, aLivemark]) } ex => {
this._log.error("creating livemark failed: " + ex);
spinningCb(null, [Components.results.NS_ERROR_UNEXPECTED, null])
}
); );
let [status, livemark] = spinningCb.wait(); let [status, livemark] = spinningCb.wait();