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
authorAndrea Marchesini <amarchesini@mozilla.com>
Mon, 19 Oct 2015 14:11:00 +0200
changeset 303690 9519653b7f2ea5e54b78675008bdf2f5b56fc472
parent 303689 aa49df6c573f421f74f1eaf17d94a87d41d75a7c
child 303691 9c1b2f5243671d6e790428acd2cdbb3fb096cca2
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1216002
milestone44.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 1216002 - "JavaScript error: resource://gre/modules/RequestSyncService.jsm, line 228: TypeError: 'continue' called on an object that does not implement interface IDBCursor." r=bz
dom/requestsync/RequestSyncService.jsm
--- a/dom/requestsync/RequestSyncService.jsm
+++ b/dom/requestsync/RequestSyncService.jsm
@@ -96,17 +96,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 = 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");