Created
June 29, 2012 15:46
-
-
Save adrianlee/3018734 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Avaliable whitelist functions: | |
isAccessAllowed()checks if <access uri="*" /> or !!getAccessByUrl() is true | |
getFeaturesForUrl() gets an array of features that are whitelisted for the URL. | |
Scenario: | |
Assume we want to check if http://rim.com is whitelisted for blackberry.io feature. We don't know if there is global access. | |
assume getFeaturesForUrl() returns [ "blackberry.app" ] | |
isAccessAllowed() may return true but we don't know if it is because there's global access or because !!getFeaturesForURL() is true. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment