mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-12 18:56:11 +08:00
Merge branch 'master' into 4.0.x (about:blank)
Conflicts: framework/src/org/apache/cordova/CordovaWebView.java
This commit is contained in:
commit
8d8b874c20
@ -371,7 +371,7 @@ public class AndroidWebView extends WebView implements CordovaWebView {
|
|||||||
if (LOG.isLoggable(LOG.DEBUG) && !url.startsWith("javascript:")) {
|
if (LOG.isLoggable(LOG.DEBUG) && !url.startsWith("javascript:")) {
|
||||||
LOG.d(TAG, ">>> loadUrlNow()");
|
LOG.d(TAG, ">>> loadUrlNow()");
|
||||||
}
|
}
|
||||||
if (url.startsWith("file://") || url.startsWith("javascript:") || internalWhitelist.isUrlWhiteListed(url)) {
|
if (url.startsWith("file://") || url.startsWith("javascript:") || url.startsWith("about:") || internalWhitelist.isUrlWhiteListed(url)) {
|
||||||
super.loadUrl(url);
|
super.loadUrl(url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -160,8 +160,8 @@ public class AndroidWebViewClient extends WebViewClient {
|
|||||||
@Override
|
@Override
|
||||||
public void onPageFinished(WebView view, String url) {
|
public void onPageFinished(WebView view, String url) {
|
||||||
super.onPageFinished(view, url);
|
super.onPageFinished(view, url);
|
||||||
// Ignore excessive calls.
|
// Ignore excessive calls, if url is not about:blank (CB-8317).
|
||||||
if (!isCurrentlyLoading) {
|
if (!isCurrentlyLoading && !url.startsWith("about:")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
isCurrentlyLoading = false;
|
isCurrentlyLoading = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user