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

Whoops, I needed to do more testing. This looks like the trick but it could use a review.
This commit is contained in:
Simon MacDonald 2012-10-01 16:03:28 -04:00
parent 17a4b5155e
commit bfd1bfe9f0

View File

@ -481,7 +481,9 @@ public class CordovaWebView extends WebView {
if (LOG.isLoggable(LOG.DEBUG) && !url.startsWith("javascript:")) {
LOG.d(TAG, ">>> loadUrlNow()");
}
super.loadUrl(url);
if (url.startsWith("file://") || url.indexOf(this.baseUrl) == 0 || url.startsWith("javascript:") || this.isUrlWhiteListed(url)) {
super.loadUrl(url);
}
}
/**