New issue
Advanced search Search tips

Issue 611098 link

Starred by 3 users

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Feature

Blocked on:
issue 325351

Blocking:
issue 855733



Sign in to add a comment

shouldOverrideUrlLoading() not getting called with redirects in WebView

Reported by m...@jungroup.com, May 11 2016

Issue description

Steps to reproduce the problem:
1. In WebChromeClient inside onCreateWindow() callback I create a new WebView and set a WebViewClient that overrides shouldOverrideUrlLoading(). I noticed that on devices with latest WebView version, shouldOverrideUrlLoading() doesn't get called on redirects but when testing with a device on (4.3 os), shouldOverrideUrlLoading() gets called in redirects.
2. 
3. 

What is the expected behavior?

What went wrong?
In WebChromeClient inside onCreateWindow() callback I create a new WebView and set a WebViewClient that overrides shouldOverrideUrlLoading(). I noticed that on devices with latest WebView version, shouldOverrideUrlLoading() doesn't get called on redirects but when testing with a device on (4.3 os), shouldOverrideUrlLoading() gets called in redirects.

Did this work before? Yes Half a year ago but not sure on which WebVIew version. It was working on a Nexus 7 before but not it doesn't work.

Chrome version: 50.0.2661.86  Channel: n/a
OS Version: 5.1.1
Flash Version:
 

Comment 1 Deleted

Comment 2 by m...@jungroup.com, May 11 2016

shouldOverrideUrlLoading() not getting called with redirects when being used in new WebView inside onCreateWindow for newer WebView versions.
Components: Mobile>WebView

Comment 4 by sgu...@chromium.org, May 25 2016

Blockedon: 325351
Owner: gsennton@chromium.org
this is actually the case unfortunately. It was previously discussed in crbug/508384. The fix is interestingly non-trivial, and the proper fix spans blink and content layers and impacts behavior of large number of apps. Our attempt to fix was reverted twice due to various failures.

I am going to make this blocked by the mother bug rather than merging to it. This way we can properly test it once the fix lands.
Project Member

Comment 5 by sheriffbot@chromium.org, May 26 2017

Status: Archived (was: Unconfirmed)
Issue has not been modified or commented on in the last 365 days, please re-open or file a new bug if this is still an issue.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 6 by torne@chromium.org, May 26 2017

Status: Assigned (was: Archived)
Owner: ----
Status: Untriaged (was: Assigned)
Throwing this back into WebView's bugcop queue - I'm no longer on WebView.

Comment 8 by torne@chromium.org, Jun 22 2018

Blocking: 855733
Labels: -Pri-2 -Type-Bug-Regression Pri-3 Type-Feature
Status: Available (was: Untriaged)
See related bugs in issue 855733

Sign in to add a comment