Hi all,

I just checked the announce of march the 6th about "API Access Control
Feature" (see
https://lists.crosswalk-project.org/pipermail/crosswalk-dev/2014-March/001109.html
 and 
https://docs.google.com/document/d/19IOppzhW1e5-jsuq_yVPMK5MANSYNh74jQc01DS9LZc/edit#)

After checking the source code it seems that declared API verbs could
only rely to one permission. Then calling:

 RegisterPermissions(extension, "[
     {
        "permission_name": "perm1", 
        "apis": [ "verb" ]
     },
     {
        "permission_name": "perm2", 
        "apis": [ "verb" ]
     }
   ]")

will be treated as if 

 RegisterPermissions(extension, "[
     {
        "permission_name": "perm2", 
        "apis": [ "verb" ]
     }
   ]")

was called.

The meaning of a such construct of the 2 permissions for a single verb
is not the concern here but that examples shows that this meaning (or or
and or xor) has to be either decided in hard or has to be explained in
the JSON string.

Best regards
José




_______________________________________________
Crosswalk-dev mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev

Reply via email to