mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 17:32:51 +08:00
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:
commit
ce53154555
@ -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)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user