Fixes apache/cordova-android#473: Do not attempt an activity intent AND a url load into the webview, return from the internal webview load.

This commit is contained in:
Joel Jeske 2018-08-29 10:52:12 -05:00
parent ebbd91f87d
commit c0188ab95a

View File

@ -216,8 +216,10 @@ public class CordovaWebViewImpl implements CordovaWebView {
// TODO: What about params?
// Load new URL
loadUrlIntoView(url, true);
return;
} else {
LOG.w(TAG, "showWebPage: Refusing to load URL into webview since it is not in the <allow-navigation> whitelist. URL=" + url);
return;
}
}
if (!pluginManager.shouldOpenExternalUrl(url)) {