Re: [b2g] Permissions API always says "unknown"

2014-07-30 Thread Frederik Braun
There was a typo the devtools did not report. I wrote "app.manifestUrl" instead of "app.manifestURL". The snippet from MDN I started with had this typo, so I edited the article as well. On 30.07.2014 11:24, Frederik Braun wrote: > On 29.07.2014 19:42, Fabrice Desré wrote: >> Hi Frederick, >> >> Yo

Re: [b2g] Permissions API always says "unknown"

2014-07-30 Thread Frederik Braun
On 29.07.2014 19:42, Fabrice Desré wrote: > Hi Frederick, > > You are not using the access mode when calling permissions.get() and I > think you need to. Take a look at what the settings app is doing to get > the app's permissions. > > Fabrice I'm not sure what you mean by "access mode".

Re: [b2g] Permissions API always says "unknown"

2014-07-29 Thread Fabrice Desré
Hi Frederick, You are not using the access mode when calling permissions.get() and I think you need to. Take a look at what the settings app is doing to get the app's permissions. Fabrice On 07/29/2014 07:31 AM, Frederik Braun wrote: > Some additional notes: > Here's what I did, for othe

Re: [b2g] Permissions API always says "unknown"

2014-07-29 Thread Frederik Braun
Some additional notes: Here's what I did, for others to reproduce always getting an "unknown": https://github.com/mozfreddyb/permissions-app/blob/master/js/app.js#L26 I *do* get a proper return value (e.g. "allow) when I execute the code from the debugger (app-manager). On 29.07.2014 13:05, Fre

[b2g] Permissions API always says "unknown"

2014-07-29 Thread Frederik Braun
Hi, I am sketching a permissions control app. The app is meant for privacy nuts like myself, who are willing to shoot their foot knowing that disabling certain permissions might cause some apps not to work :) Thus, the app will list all permissions. Even the ones we consider not to be very useful