Added setPermissions line for B2G