Bug 786814 - Don't overwrite indexeddb in SettingsService. r=bent

This commit is contained in:
Gregor Wagner 2012-08-29 17:55:36 -03:00
parent 70ce16d58b
commit ab6d35973e

View File

@ -141,8 +141,10 @@ function SettingsService()
{
debug("settingsService Constructor");
this._locks = new Queue();
var idbManager = Components.classes["@mozilla.org/dom/indexeddb/manager;1"].getService(Ci.nsIIndexedDatabaseManager);
idbManager.initWindowless(myGlobal);
if (!("indexedDB" in myGlobal)) {
let idbManager = Components.classes["@mozilla.org/dom/indexeddb/manager;1"].getService(Ci.nsIIndexedDatabaseManager);
idbManager.initWindowless(myGlobal);
}
this._settingsDB = new SettingsDB();
this._settingsDB.init(myGlobal);
}