mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 786814 - Don't overwrite indexeddb in SettingsService. r=bent
This commit is contained in:
parent
70ce16d58b
commit
ab6d35973e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user