Bug 678259 - Implement mozIVisitInfoCallback::handleResult to avoid exception. r=rnewman
authorPhilipp von Weitershausen <philipp@weitershausen.de>
Thu, 11 Aug 2011 22:52:48 -0700
changeset 74300 c7c13a66ad615d19d2dd91484fa4a3288868a772
parent 74299 77a0d9f09820956bce5c4e1818ed540762fd6c23
child 74301 415a7b342701d2f6ad7bda9b06a72acbbe06b073
push id2
push userbsmedberg@mozilla.com
push dateFri, 19 Aug 2011 14:38:13 +0000
reviewersrnewman
bugs678259
milestone8.0a1
Bug 678259 - Implement mozIVisitInfoCallback::handleResult to avoid exception. r=rnewman
services/sync/modules/engines/history.js
--- a/services/sync/modules/engines/history.js
+++ b/services/sync/modules/engines/history.js
@@ -250,16 +250,17 @@ HistoryStore.prototype = {
 
     // Nothing to do.
     if (!records.length) {
       return failed;
     }
 
     let cb = Async.makeSyncCallback();
     let updatePlacesCallback = { 
+      handleResult: function handleResult() {},
       handleError: function handleError(resultCode, placeInfo) {
         failed.push(placeInfo.guid);
       }
     };
     let onComplete = function onComplete(subject, topic, data) {
       Svc.Obs.remove(TOPIC_UPDATEPLACES_COMPLETE, onComplete);
       cb();
     };