On 09/17/2013 03:16 PM, jose llopis wrote:
> Here is my question, im making an app which needs to load contacts from phone
> and also uses socket io + jquery for getting some info but it doesnt work at
> all, when i've removed type: privileged ir works but i am not able todo use
> the contact api anymore?
When you run it as a privileged app, we apply a CSP (Content Security
Policy) that likely prevents jquery and/or socket io to work if they do
something insecure. You should be able to get more information from the
console.
When you remove the "privileged" type, your app fallback as a web app
without access to the contacts api, and with no CSP.
So the first step is to understand what makes your 3rd party libraries
to fail, since your only way to get contacts access is to be a
privileged app.
Fabrice
--
Fabrice Desré
b2g team
Mozilla Corporation
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g