[
https://issues.apache.org/jira/browse/CB-10365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15102625#comment-15102625
]
Joe Bowser edited comment on CB-10365 at 1/15/16 11:35 PM:
-----------------------------------------------------------
Do you have a way of showing that it's not intercepting the request? Based on
your description, if I include something that should be blocked in an image
tag, it will appear, right? That said, I'm not able to currently reproduce this
thing as it is. Can you please provide us with an example of this actually
breaking?
I need to know the following:
What device?
What patch level?
I'm currently testing on the Nexus 5x with the latest patch level.
was (Author: bowserj):
Do you have a way of showing that it's not intercepting the request? Based on
your description, if I include something that should be blocked in an image
tag, it will appear, right? That said, I'm not able to currently reproduce this
thing as it is. Can you please provide us with an example of this actually
breaking?
> Android 6.0 WebView don't intercept all urls
> --------------------------------------------
>
> Key: CB-10365
> URL: https://issues.apache.org/jira/browse/CB-10365
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: Master, 5.0.0
> Reporter: Jordi Murgo
> Labels: easyfix
>
> The call to public WebResourceResponse shouldInterceptRequest(WebView view,
> String url) was deprecated on LOLLIPOP, in favour of the new public
> WebResourceResponse shouldInterceptRequest(WebView view, WebResourceRequest
> request).
> Android 6.0 WebView use the new one to handle ALL requests, and the old one
> only to handle the main document request.
> Possible fix in SystemWebViewClient.java, add the following method:
> @TargetApi(Build.VERSION_CODES.LOLLIPOP)
> @Override
> public WebResourceResponse shouldInterceptRequest(WebView view,
> WebResourceRequest request) {
> return this.shouldInterceptRequest(view, request.getUrl().toString());
> }
> Salut!
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]