cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [1/2] android commit: Simplify default navigation policy to allow navigations within `/app_webview/`
Date Tue, 03 Mar 2015 01:38:25 GMT
Repository: cordova-android
Updated Branches:
  refs/heads/master c237a1c0d -> 1ad280db9


Simplify default navigation policy to allow navigations within `/app_webview/`

It's really on XHRs to it that are an issue.


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

Branch: refs/heads/master
Commit: 035c3ad319d93314780efdab4e5f87c088922483
Parents: c237a1c
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Fri Feb 27 15:46:17 2015 -0500
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Fri Feb 27 15:46:17 2015 -0500

----------------------------------------------------------------------
 framework/src/org/apache/cordova/PluginManager.java | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/035c3ad3/framework/src/org/apache/cordova/PluginManager.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/PluginManager.java b/framework/src/org/apache/cordova/PluginManager.java
index 9424a6f..4d7c823 100755
--- a/framework/src/org/apache/cordova/PluginManager.java
+++ b/framework/src/org/apache/cordova/PluginManager.java
@@ -362,13 +362,7 @@ public class PluginManager {
         }
 
         // Default policy:
-        // Internal urls on file:// or data:// that do not contain "/app_webview/" are allowed
for navigation
-        if (url.startsWith("file://") || url.startsWith("data:")) {
-            // This directory on WebKit/Blink based webviews contains SQLite databases!
-            // DON'T CHANGE THIS UNLESS YOU KNOW WHAT YOU'RE DOING!
-            return !url.contains("/app_webview/");
-        }
-        return false;
+        return url.startsWith("file://");
     }
 
     /**


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


Mime
View raw message