Bug 1216002 - "JavaScript error: resource://gre/modules/RequestSyncService.jsm, line 228: TypeError: 'continue' called on an object that does not implement interface IDBCursor." r=bz, a=lizzard
authorAndrea Marchesini <amarchesini@mozilla.com>
Mon, 19 Oct 2015 14:11:00 +0200
changeset 298294 e9f8165910411bcc9e9c3b2885236fdaf12049ac
parent 298293 2a94d540599eecfca9bf300db54155ffb51e935f
child 298295 93cf17a1425d4b2b509a26906f3b035fb29d414d
push id962
push userjlund@mozilla.com
push dateFri, 04 Dec 2015 23:28:54 +0000
treeherdermozilla-release@23a2d286e80f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz, lizzard
bugs1216002
milestone43.0a2
Bug 1216002 - "JavaScript error: resource://gre/modules/RequestSyncService.jsm, line 228: TypeError: 'continue' called on an object that does not implement interface IDBCursor." r=bz, a=lizzard
dom/requestsync/RequestSyncService.jsm
--- a/dom/requestsync/RequestSyncService.jsm
+++ b/dom/requestsync/RequestSyncService.jsm
@@ -97,17 +97,19 @@ this.RequestSyncService = {
     // Loading all the data from the database into the _registrations map.
     // Any incoming message will be stored and processed when the async
     // operation is completed.
 
     this.dbTxn("readonly", function(aStore) {
       aStore.openCursor().onsuccess = function(event) {
         let cursor = event.target.result;
         if (cursor) {
-          this.addRegistration(cursor.value, cursor.continue);
+          this.addRegistration(cursor.value, function() {
+            cursor.continue();
+          });
         }
       }
     }.bind(this),
     function() {
       debug("initialization done");
     },
     function() {
       dump("ERROR!! RequestSyncService - Failed to retrieve data from the database.\n");