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 74298 c7c13a66ad615d19d2dd91484fa4a3288868a772
parent 74297 77a0d9f09820956bce5c4e1818ed540762fd6c23
child 74299 415a7b342701d2f6ad7bda9b06a72acbbe06b073
push id20972
push usermbrubeck@mozilla.com
push dateFri, 12 Aug 2011 13:47:23 +0000
treeherdermozilla-central@c2213f8c76dd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrnewman
bugs678259
milestone8.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 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();
     };