diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/com/android/browser/PopularUrlsTest.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/src/com/android/browser/PopularUrlsTest.java b/tests/src/com/android/browser/PopularUrlsTest.java index 86ce94d..e407194 100644 --- a/tests/src/com/android/browser/PopularUrlsTest.java +++ b/tests/src/com/android/browser/PopularUrlsTest.java @@ -247,6 +247,14 @@ public class PopularUrlsTest extends ActivityInstrumentationTestCase2<BrowserAct } } + @Override + public boolean shouldOverrideUrlLoading(WebView view, String url) { + if (!(url.startsWith("http://") || url.startsWith("https://"))) { + Log.v(TAG, String.format("suppressing non-http url scheme: %s", url)); + return true; + } + return super.shouldOverrideUrlLoading(view, url); + } }); webView.setDownloadListener(new DownloadListener() { |