CB-1564: DroidGap.loadUrl follows a path that never checks the white list

This commit is contained in:
Simon MacDonald 2012-10-01 16:03:28 -04:00
parent 17a4b5155e
commit 3404a6c699

View File

@ -481,8 +481,10 @@ public class CordovaWebView extends WebView {
if (LOG.isLoggable(LOG.DEBUG) && !url.startsWith("javascript:")) {
LOG.d(TAG, ">>> loadUrlNow()");
}
if (this.isUrlWhiteListed(url)) {
super.loadUrl(url);
}
}
/**
* Load the url into the webview after waiting for period of time.