New issue
Advanced search Search tips

Issue 597534 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

HitTestResult.getType returns UNKNOWN_TYPE for image in search results

Reported by varunsha...@gmail.com, Mar 24 2016

Issue description

Steps to reproduce the problem:
1. Search some text on google.com from a WebView
2. In the search results long press on one of the images returned at the top of the page in "ALL" tab of the web page.
3. Check if HitTestResult of the page

What is the expected behavior?
HitsTestResult should be of IMAGE_TYPE

What went wrong?
HitsTestResult is of UNKNOWN_TYPE

Did this work before? No 

Chrome version: 50.0.2661.35  Channel: stable
OS Version: Android L
Flash Version: Shockwave Flash 21.0 r0
 
Components: Mobile>WebView
Cc: boliu@chromium.org
adding boliu@: who probably knows more about this (from looking at the webview CLs).

Comment 3 by boliu@chromium.org, Mar 24 2016

Owner: boliu@chromium.org
Status: Assigned (was: Unconfirmed)
Yeah I can repro this. Weird, hit testing logic in blink changed maybe

Comment 4 by boliu@chromium.org, Mar 24 2016

Looks like specific to google search though. Hit test on images from other sites, so it's possible it's hitting an invisible div or something.

But chrome long press is able to interpret it as an image, so there is no reason why this can't work too.

Comment 5 by boliu@chromium.org, Mar 24 2016

Doesn't appear to be a recent regression either. So scratch that part about blink logic changing..

Sign in to add a comment