mirror of
https://github.com/apache/cordova-android.git
synced 2025-05-15 00:01:29 +08:00
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:
parent
ebbd91f87d
commit
c0188ab95a
@ -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…
x
Reference in New Issue
Block a user