You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2015/03/03 22:13:20 UTC

cordova-plugins git commit: Add to url-policy README that navigation-whitelist on Android sometimes applies to iframes

Repository: cordova-plugins
Updated Branches:
  refs/heads/master 3ed17046e -> e960919bc


Add to url-policy README that navigation-whitelist on Android sometimes applies to iframes


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugins/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugins/commit/e960919b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugins/tree/e960919b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugins/diff/e960919b

Branch: refs/heads/master
Commit: e960919bce1ac2389368aaf904e16ad8a42ab6dc
Parents: 3ed1704
Author: Andrew Grieve <ag...@chromium.org>
Authored: Tue Mar 3 16:11:12 2015 -0500
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Tue Mar 3 16:13:15 2015 -0500

----------------------------------------------------------------------
 url-policy/README.md | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/e960919b/url-policy/README.md
----------------------------------------------------------------------
diff --git a/url-policy/README.md b/url-policy/README.md
index 84d6e75..5856a15 100644
--- a/url-policy/README.md
+++ b/url-policy/README.md
@@ -7,9 +7,13 @@ This plugin implements a whitelist policy for navigating the application webview
 * Android 4.0.0 or above
 
 ## Navigation Whitelist
-Controls which URLs the WebView itself can be navigated to. The WebView can
-always navigate to `file://` URLs, but if you want to have it navigate to
-other schemes, you must add `<allow-navigation>` tags to your `config.xml`:
+Controls which URLs the WebView itself can be navigated to. Applies to
+top-level navigations only.
+
+Quirks: on Android it also applies to iframes for non-http(s) schemes.
+
+By default, navigations only to `file://` URLs, are allowed. To allow other
+other URLs, you must add `<allow-navigation>` tags to your `config.xml`:
 
     <!-- Allow links to example.com -->
     <allow-navigation href="http://example.com/*" />


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org