Bug 743635 - B2G SMS database initialization freezes I/O thread. r=mwu

This commit is contained in:
Philipp von Weitershausen 2012-04-10 09:42:50 +08:00
parent 22c4c68ac2
commit 437054ec59

View File

@ -46,6 +46,10 @@ const GLOBAL_SCOPE = this;
* SmsDatabaseService
*/
function SmsDatabaseService() {
// Prime the directory service's cache to ensure that the ProfD entry exists
// by the time IndexedDB queries for it off the main thread. (See bug 743635.)
Services.dirsvc.get("ProfD", Ci.nsIFile);
gIDBManager.initWindowless(GLOBAL_SCOPE);
let that = this;