[
https://issues.apache.org/jira/browse/CB-4093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13705915#comment-13705915
]
Ian Clelland edited comment on CB-4093 at 7/11/13 3:31 PM:
-----------------------------------------------------------
I'm creating a new plugin for this, org.apache.cordova.test.WhitelistAPI, with
two methods:
{{cordova.whitelist.match(url, patterns, callback)}}, which tests a single url
against a set of whitelist patterns, and reports True or False to the callback,
and
{{cordova.whitelist.test(url, callback)}}, which tests a single url against the
currently-active whitelist, and reports True or False to the callback.
I've implemented those plugins for Android and iOS. Other platforms should be
able to use those as a reference.
was (Author: iclelland):
I'm creating a new plugin for this, org.apache.cordova.test.WhitelistAPI,
with two methods:
{{match(url, patterns, callback)}}, which tests a single url against a set of
whitelist patterns, and reports True or False to the callback, and
{{test(url, callback)}}, which tests a single url against the currently-active
whitelist, and reports True or False to the callback.
I've implemented those plugins for Android and iOS. Other platforms should be
able to use those as a reference.
> Unify Whitelist Implementations
> -------------------------------
>
> Key: CB-4093
> URL: https://issues.apache.org/jira/browse/CB-4093
> Project: Apache Cordova
> Issue Type: Bug
> Affects Versions: 3.0.0
> Reporter: Andrew Grieve
> Assignee: Ian Clelland
>
> ML Discussion: http://callback.markmail.org/thread/lqadhj3uqqtmohka
> Summary:
> Ditch the subdomains="true" attribute and standardize on what is described
> here (minus allowing "chrome-extension" in the scheme):
> http://developer.chrome.com/extensions/match_patterns.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira