Bug 711358 - [b2g] Add indexedDB-unlimited permission to pre-installed apps r=cjones
authorVivien Nicolas <21@vingtetun.org>
Mon, 26 Dec 2011 15:07:41 +0100
changeset 84587 f8c20866035f5694373f00009764b167b7a53a02
parent 84586 4e7281c6c2e91816257d0765797b43b1287bf922
child 84588 507252be27e8ef7b5402d56d62362fefcfe3f889
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscjones
bugs711358
milestone12.0a1
Bug 711358 - [b2g] Add indexedDB-unlimited permission to pre-installed apps r=cjones
b2g/chrome/content/shell.js
--- a/b2g/chrome/content/shell.js
+++ b/b2g/chrome/content/shell.js
@@ -71,17 +71,19 @@ function startupHttpd(baseDir, port) {
   server.registerContentType('appcache', 'text/cache-manifest');
   server.start(port);
 }
 
 // FIXME Bug 707625
 // until we have a proper security model, add some rights to
 // the pre-installed web applications 
 function addPermissions(urls) {
-  let permissions = ['indexedDB', 'webapps-manage', 'offline-app'];
+  let permissions = [
+    'indexedDB', 'indexedDB-unlimited', 'webapps-manage', 'offline-app'
+  ];
   urls.forEach(function(url) {
     let uri = Services.io.newURI(url, null, null);
     let allow = Ci.nsIPermissionManager.ALLOW_ACTION;
     
     permissions.forEach(function(permission) {
       Services.perms.add(uri, permission, allow);
     });
   });