New issue
Advanced search Search tips

Issue 713711 link

Starred by 1 user

Issue metadata

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

Blocking:
issue 696686



Sign in to add a comment

Allow synthetic mouse events to be dispatched to form controls

Project Member Reported by dtapu...@chromium.org, Apr 20 2017

Issue description

Seems that:

target.dispatch(new MouseEvent("click")); fails but
target.dispatch(new Event("click")); works

Example URI:
http://jsbin.com/xujuxox/edit?html,js,console,output

Edge doesn't get in the way.
FireFox allows some events to work.

Related to issue 696686, and issue 693521
 
Project Member

Comment 1 by bugdroid1@chromium.org, Apr 21 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/c81c13ac449b26b113f79c4b1155f21976724bd9

commit c81c13ac449b26b113f79c4b1155f21976724bd9
Author: dtapuska <dtapuska@chromium.org>
Date: Fri Apr 21 15:03:55 2017

Add use counter for dispatching mouse events on disabled form controls.

We need to determine if this code actually executes in the wild. I doubt
it really does with any high occurrence. Edge, FireFox behave differently.

BUG=713711

Review-Url: https://codereview.chromium.org/2835483002
Cr-Commit-Position: refs/heads/master@{#466337}

[modify] https://crrev.com/c81c13ac449b26b113f79c4b1155f21976724bd9/third_party/WebKit/Source/core/dom/Node.cpp
[modify] https://crrev.com/c81c13ac449b26b113f79c4b1155f21976724bd9/third_party/WebKit/Source/core/frame/UseCounter.h
[modify] https://crrev.com/c81c13ac449b26b113f79c4b1155f21976724bd9/tools/metrics/histograms/histograms.xml

dtapsuka@ Any insight from UseCounter added in #2 that can help us make a decision on this issue?
We need to adjust the use counters to add specifically dispatching mouseup/down at form controls
Owner: nzolghadr@chromium.org

Sign in to add a comment