New issue
Advanced search Search tips

Issue 662401 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Double-click events not fired on SVG <use> elements

Reported by ken...@gmail.com, Nov 4 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.87 Safari/537.36

Steps to reproduce the problem:
With the attached file:

1.Double-click on the text "double click test" - JS event is fired, correctly
2. Double-click on the black circle - JS event is not fired.

What is the expected behavior?
The event should be fired when double clicking the <use> element

What went wrong?
The event was not fired.

Did this work before? Yes 53

Does this work in other browsers? Yes

Chrome version: 54.0.2840.87  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: Shockwave Flash 23.0 r0
 
double-click.html
902 bytes View Download

Comment 1 by f...@opera.com, Nov 4 2016

Cc: hayato@chromium.org
Labels: -OS-Windows
Status: Available (was: Unconfirmed)
I guess this is because of  issue 630870 . I guess the handling of the 'dblclick' event is a little special here.
Labels: Needs-Bisect
Let's verify the breaking change.
Labels: -Needs-Bisect
It is most likely https://codereview.chromium.org/2186823002.

In eventPathShouldBeEmptyFor(...) the single click event is composed() but the dblclick follow up is not.
Components: -Blink>SVG Blink>DOM>Events
Status: Untriaged (was: Available)
And the reason it's not composed is because the event created in MouseEventDispatchMediator::dispatchEvent for the double click uses default MouseEvent constructor which does not invoke any other constructor to set the composed flag. That seems like a bug because I don't see why click would be composed() but not doubleclick, but I don't know enough about events to know whether it's important.

That means this is really an Events bug, as the issue is construction of the double click event.
Owner: hayato@chromium.org
Status: Assigned (was: Untriaged)
Sounds a bug. Let me take a look.
Status: Started (was: Assigned)

Comment 8 by hayato@chromium.org, Nov 10 2016

Status: Fixed (was: Started)

Comment 9 by tkent@chromium.org, Mar 15 2017

Components: -Blink>DOM>Events Blink>DOM
Remove Blink>DOM>Events

Sign in to add a comment