GH-473: Do not attempt an activity for internal url loads

Merge pull request #487 from joeljeske/bugfix/473-crash-on-android-7
This commit is contained in:
Darryl Pogue 2018-08-29 10:10:23 -07:00 committed by GitHub
commit ce53154555
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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