summaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/browser/TestWebChromeClient.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/com/android/browser/TestWebChromeClient.java')
-rw-r--r--tests/src/com/android/browser/TestWebChromeClient.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/src/com/android/browser/TestWebChromeClient.java b/tests/src/com/android/browser/TestWebChromeClient.java
index 53f8db38..dd84b3a1 100644
--- a/tests/src/com/android/browser/TestWebChromeClient.java
+++ b/tests/src/com/android/browser/TestWebChromeClient.java
@@ -84,7 +84,9 @@ abstract class TestWebChromeClient extends WebChromeClient {
@Override
public boolean onCreateWindow(WebView view, boolean dialog,
boolean userGesture, Message resultMsg) {
- return mWrappedClient.onCreateWindow(view, dialog, userGesture, resultMsg);
+ // do not open any new pop-ups
+ resultMsg.sendToTarget();
+ return true;
}
/** {@inheritDoc} */