You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by er...@apache.org on 2021/09/13 06:48:11 UTC

[cordova-android] branch master updated: fix(PluginManager): AllowNavigation default policy to handle scheme & hostname (#1349)

This is an automated email from the ASF dual-hosted git repository.

erisu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-android.git


The following commit(s) were added to refs/heads/master by this push:
     new ca19084  fix(PluginManager): AllowNavigation default policy to handle scheme & hostname (#1349)
ca19084 is described below

commit ca19084b1c1dfee3e999a2436b96ea30bc0cd920
Author: エリス <er...@users.noreply.github.com>
AuthorDate: Mon Sep 13 15:48:02 2021 +0900

    fix(PluginManager): AllowNavigation default policy to handle scheme & hostname (#1349)
---
 framework/src/org/apache/cordova/PluginManager.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/framework/src/org/apache/cordova/PluginManager.java b/framework/src/org/apache/cordova/PluginManager.java
index 4df978f..472bd2b 100755
--- a/framework/src/org/apache/cordova/PluginManager.java
+++ b/framework/src/org/apache/cordova/PluginManager.java
@@ -455,7 +455,7 @@ public class PluginManager {
         }
 
         // Default policy:
-        return url.startsWith("file://") || url.startsWith("about:blank");
+        return url.startsWith(getLaunchUrlPrefix()) || url.startsWith("about:blank");
     }
 
 

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