New issue
Advanced search Search tips

Issue 923652 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 923651
Owner: ----
Closed: Jan 19
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Drag over div over iframe does not receive dragover events

Reported by i...@vivaldi.com, Jan 19 (3 days ago)

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36 Vivaldi/2.2.1388.37

Steps to reproduce the problem:
1. Open the attached file. It contains a drag-drop example with an absolutely positioned div on top over iframe.

2. Drag the green "Drag me!" element over the yellow text.

What is the expected behavior?
When the drag object over the yellow div, the document should receive dragover events and continue to report their position.  

What went wrong?
The dragover events are only received and reported when the drag object is outside of the iframe. When it is dragged into iframe, no events are received even if the object over the yellow div positioned on top of the iframe.

Did this work before? Yes Chromium 71

Does this work in other browsers? Yes

Chrome version:  72.0.3626.55   Channel: beta
OS Version: Ubuntu 18.04
Flash Version: 

It seems this is regression due to enabled VizHitTestDrawQuad feature. In particular, the drag API calls into RenderWidgetHostInputEventRouter::GetRenderWidgetHostAtPoint(). That function calls FindViewAtLocation(). In the example that function return the view for the iframe and sets should_query_view to true when the mouse is over the div positioned over the iframe. But GetRenderWidgetHostAtPoint() ignores the flag and incorrectly returns the child view, not the view for the parent.
 
drag-drop.html
1.3 KB View Download

Comment 1 by phistuck@chromium.org, Jan 19 (3 days ago)

Mergedinto: 923651
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment