You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Piotr Zalewa <pz...@mozilla.com> on 2013/11/27 18:11:12 UTC

[FxOS] Special needs for contact plugin

Hi,

I've almost finished the Contacts proxy for Firefox OS. [1]

Access to contacts API in FxOS requires webapp to be "privileged" and special permissions needs to be set in app's manifest.
The privileged app enforces Content Security Policy [2] which doesn't allow for inline javascript. 

Because of both above special documentation is needed. Where should I put it?

Thanks
Piotr


[1] https://github.com/zalun/cordova-plugin-contacts
[2] https://developer.mozilla.org/en-US/Apps/CSP

Re: [FxOS] Special needs for contact plugin

Posted by Steven Gill <st...@gmail.com>.
The CSP is quite restrictive eh. This will definitely make it more
difficult to port apps that require plugins that make the app "privileged".
No way around this it seems.

I would add a short summary + link to the CSP in the quirks section for all
of the plugins that will turn the application into a privileged app.


On Wed, Nov 27, 2013 at 9:41 AM, Lorin Beer <lo...@gmail.com>wrote:

> traditionally, we have had a per platform quirks section in the relevant
> api's documentation.
>
> Search for quirks in the contacts
> api<
> http://cordova.apache.org/docs/en/edge/cordova_contacts_contacts.md.html#Contacts
> >
> and
> you should find sections for Android, BlackBerry, iOS and WP 7 and 8.
>
> Just add a FireFox OS section, and document quirks there.
>
>
>
>
> On Wed, Nov 27, 2013 at 9:11 AM, Piotr Zalewa <pz...@mozilla.com> wrote:
>
> > Hi,
> >
> > I've almost finished the Contacts proxy for Firefox OS. [1]
> >
> > Access to contacts API in FxOS requires webapp to be "privileged" and
> > special permissions needs to be set in app's manifest.
> > The privileged app enforces Content Security Policy [2] which doesn't
> > allow for inline javascript.
> >
> > Because of both above special documentation is needed. Where should I put
> > it?
> >
> > Thanks
> > Piotr
> >
> >
> > [1] https://github.com/zalun/cordova-plugin-contacts
> > [2] https://developer.mozilla.org/en-US/Apps/CSP
> >
>

Re: [FxOS] Special needs for contact plugin

Posted by Carlos Santana <cs...@gmail.com>.
Piotr,
   Here is the repo for the docs
https://github.com/apache/cordova-docs

The section for the Contacts quirks are here:
https://github.com/apache/cordova-docs/blob/master/docs/en/edge/cordova/contacts/Contact/contact.md



On Thu, Nov 28, 2013 at 6:41 AM, Piotr Zalewa <pz...@mozilla.com> wrote:

> How to edit this pages?
> Is there a repository for it?
>
>
> On 11/27/2013 06:41 PM, Lorin Beer wrote:
>
>> traditionally, we have had a per platform quirks section in the relevant
>> api's documentation.
>>
>> Search for quirks in the contacts
>> api<http://cordova.apache.org/docs/en/edge/cordova_contacts_
>> contacts.md.html#Contacts>
>> and
>> you should find sections for Android, BlackBerry, iOS and WP 7 and 8.
>>
>> Just add a FireFox OS section, and document quirks there.
>>
>>
>>
>>
>> On Wed, Nov 27, 2013 at 9:11 AM, Piotr Zalewa <pz...@mozilla.com>
>> wrote:
>>
>>  Hi,
>>>
>>> I've almost finished the Contacts proxy for Firefox OS. [1]
>>>
>>> Access to contacts API in FxOS requires webapp to be "privileged" and
>>> special permissions needs to be set in app's manifest.
>>> The privileged app enforces Content Security Policy [2] which doesn't
>>> allow for inline javascript.
>>>
>>> Because of both above special documentation is needed. Where should I put
>>> it?
>>>
>>> Thanks
>>> Piotr
>>>
>>>
>>> [1] https://github.com/zalun/cordova-plugin-contacts
>>> [2] https://developer.mozilla.org/en-US/Apps/CSP
>>>
>>>
>>
>


-- 
Carlos Santana
<cs...@gmail.com>

Re: [FxOS] Special needs for contact plugin

Posted by Piotr Zalewa <pz...@mozilla.com>.
How to edit this pages?
Is there a repository for it?

On 11/27/2013 06:41 PM, Lorin Beer wrote:
> traditionally, we have had a per platform quirks section in the relevant
> api's documentation.
>
> Search for quirks in the contacts
> api<http://cordova.apache.org/docs/en/edge/cordova_contacts_contacts.md.html#Contacts>
> and
> you should find sections for Android, BlackBerry, iOS and WP 7 and 8.
>
> Just add a FireFox OS section, and document quirks there.
>
>
>
>
> On Wed, Nov 27, 2013 at 9:11 AM, Piotr Zalewa <pz...@mozilla.com> wrote:
>
>> Hi,
>>
>> I've almost finished the Contacts proxy for Firefox OS. [1]
>>
>> Access to contacts API in FxOS requires webapp to be "privileged" and
>> special permissions needs to be set in app's manifest.
>> The privileged app enforces Content Security Policy [2] which doesn't
>> allow for inline javascript.
>>
>> Because of both above special documentation is needed. Where should I put
>> it?
>>
>> Thanks
>> Piotr
>>
>>
>> [1] https://github.com/zalun/cordova-plugin-contacts
>> [2] https://developer.mozilla.org/en-US/Apps/CSP
>>
>


Re: [FxOS] Special needs for contact plugin

Posted by Lorin Beer <lo...@gmail.com>.
traditionally, we have had a per platform quirks section in the relevant
api's documentation.

Search for quirks in the contacts
api<http://cordova.apache.org/docs/en/edge/cordova_contacts_contacts.md.html#Contacts>
and
you should find sections for Android, BlackBerry, iOS and WP 7 and 8.

Just add a FireFox OS section, and document quirks there.




On Wed, Nov 27, 2013 at 9:11 AM, Piotr Zalewa <pz...@mozilla.com> wrote:

> Hi,
>
> I've almost finished the Contacts proxy for Firefox OS. [1]
>
> Access to contacts API in FxOS requires webapp to be "privileged" and
> special permissions needs to be set in app's manifest.
> The privileged app enforces Content Security Policy [2] which doesn't
> allow for inline javascript.
>
> Because of both above special documentation is needed. Where should I put
> it?
>
> Thanks
> Piotr
>
>
> [1] https://github.com/zalun/cordova-plugin-contacts
> [2] https://developer.mozilla.org/en-US/Apps/CSP
>