Bug 742765 - this._indexedDB is undefined in SettingsManager.js. r=gwagner
authorVivien Nicolas <21@vingtetun.org>
Fri, 06 Apr 2012 03:12:18 -0700
changeset 94475 7a03c035f30a8388792344a15c7dfc8d9a274d49
parent 94474 569698a19cb72f49f41625bf785c8b918cfb2967
child 94476 996a39afd4aed987486ed67669c473e33c174ac5
push id886
push userlsblakk@mozilla.com
push dateMon, 04 Jun 2012 19:57:52 +0000
treeherdermozilla-beta@bbd8d5efd6d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgwagner
bugs742765
milestone14.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 742765 - this._indexedDB is undefined in SettingsManager.js. r=gwagner
dom/settings/SettingsManager.js
--- a/dom/settings/SettingsManager.js
+++ b/dom/settings/SettingsManager.js
@@ -59,17 +59,17 @@ SettingsDB.prototype = {
    */
   ensureDB: function ensureDB(aSuccessCb, aFailureCb, aGlobal) {
     if (this.db) {
       debug("ensureDB: already have a database, returning early.");
       return;
     }
 
     let self = this;
-    debug("try to open database:" + DB_NAME + " " + DB_VERSION + " " + this._indexedDB);
+    debug("try to open database:" + DB_NAME + " " + DB_VERSION + " " + this.db);
     let req = aGlobal.mozIndexedDB.open(DB_NAME, DB_VERSION);
     req.onsuccess = function (event) {
       debug("Opened database:", DB_NAME, DB_VERSION);
       self.db = event.target.result;
       self.db.onversionchange = function(event) {
         debug("WARNING: DB modified from a different window.");
       }
       aSuccessCb();