Bug 766375 - Move idb databases to /data/local. r=fabrice
authorGregor Wagner <anygregor@gmail.com>
Thu, 21 Jun 2012 14:17:11 -0700
changeset 97327 685105c235d74a2653f128ebdf1d4e02890915af
parent 97326 67326ea1c6972d65b3adf6d6db3f8b969239f388
child 97328 039721acef4709e4608c4bf4724563dd4a79525f
push id22968
push useremorley@mozilla.com
push dateFri, 22 Jun 2012 10:29:13 +0000
treeherdermozilla-central@aaa6906f8e92 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfabrice
bugs766375
milestone16.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 766375 - Move idb databases to /data/local. r=fabrice
b2g/components/DirectoryProvider.js
--- a/b2g/components/DirectoryProvider.js
+++ b/b2g/components/DirectoryProvider.js
@@ -17,24 +17,23 @@ function DirectoryProvider() {
 
 DirectoryProvider.prototype = {
   classID: Components.ID("{9181eb7c-6f87-11e1-90b1-4f59d80dd2e5}"),
 
   QueryInterface: XPCOMUtils.generateQI([Ci.nsIDirectoryServiceProvider]),
 
   getFile: function dp_getFile(prop, persistent) {
 #ifdef MOZ_WIDGET_GONK
-    let localProps = ["cachePDir", "webappsDir", "PrefD"];
+    let localProps = ["cachePDir", "webappsDir", "PrefD", "indexedDBPDir"];
     if (localProps.indexOf(prop) != -1) {
       prop.persistent = true;
       let file = Cc["@mozilla.org/file/local;1"]
                    .createInstance(Ci.nsILocalFile)
       file.initWithPath(LOCAL_DIR);
       return file;
     }
 #endif
 
     return null;
   }
 };
 
 const NSGetFactory = XPCOMUtils.generateNSGetFactory([DirectoryProvider]);
-