diff --git a/framework/src/org/apache/cordova/CordovaWebView.java b/framework/src/org/apache/cordova/CordovaWebView.java index 1b60c158..cdd2fbda 100644 --- a/framework/src/org/apache/cordova/CordovaWebView.java +++ b/framework/src/org/apache/cordova/CordovaWebView.java @@ -106,8 +106,8 @@ public class CordovaWebView extends WebView { { Log.d(TAG, "Your activity must implement CordovaInterface to work"); } - this.setWebChromeClient(new CordovaChromeClient(this.mCtx)); - this.setWebViewClient(new CordovaWebViewClient(this.mCtx)); + this.setWebChromeClient(new CordovaChromeClient(this.mCtx, this)); + this.setWebViewClient(new CordovaWebViewClient(this.mCtx, this)); this.loadConfiguration(); this.setup(); } @@ -130,8 +130,8 @@ public class CordovaWebView extends WebView { { Log.d(TAG, "Your activity must implement CordovaInterface to work"); } - this.setWebChromeClient(new CordovaChromeClient(this.mCtx)); - this.setWebViewClient(new CordovaWebViewClient(this.mCtx)); + this.setWebChromeClient(new CordovaChromeClient(this.mCtx, this)); + this.setWebViewClient(new CordovaWebViewClient(this.mCtx, this)); this.loadConfiguration(); this.setup(); }