Bug 741560 - Pin apps in b2g [r=mayhemer]

This commit is contained in:
Fabrice Desré 2012-04-04 17:55:08 -07:00
parent 295e25030a
commit 8c21e4bf89

View File

@ -45,14 +45,13 @@ XPCOMUtils.defineLazyServiceGetter(Services, 'fm', function() {
// XXX never grant 'content-camera' to non-gaia apps
function addPermissions(urls) {
let permissions = [
'indexedDB', 'indexedDB-unlimited', 'webapps-manage', 'offline-app',
'indexedDB', 'indexedDB-unlimited', 'webapps-manage', 'offline-app', 'pin-app',
'websettings-read', 'websettings-readwrite',
'content-camera', 'webcontacts-manage', 'wifi-manage', 'desktop-notification',
'geolocation'
];
urls.forEach(function(url) {
url = url.trim();
dump("XxXxX adding permissions for " + url);
let uri = Services.io.newURI(url, null, null);
let allow = Ci.nsIPermissionManager.ALLOW_ACTION;