Ready for Developer Testing: Update text selection on mouseup before dispatching click event

13 views
Skip to first unread message

Chromestatus

unread,
9:22 AM (2 hours ago) 9:22 AM
to blin...@chromium.org, perry...@gmail.com
Contact emails
perry...@gmail.com

Specification
No information provided

Summary
Currently Chromium applies the default action of a mouseup event (e.g. collapsing or committing a drag-selection in a text input) after the click event has already been dispatched. This violates developer expectations: a click handler that reads selection state sees stale data from before the mouseup default action ran. This change moves the mouseup default-action step to run before the click event is dispatched, so that selection (and any other mouseup side effects) is already settled when click handlers execute.

Blink component
Blink>Input

Web Feature ID
mouse-events

Risks


Interoperability and Compatibility
No information provided

Gecko: No signal

WebKit: No signal

Web developers: No signals

Other signals:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

No information provided


Debuggability
No information provided

Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, ChromeOS, Android, and Android WebView)?
Yes

Is this feature fully tested by web-platform-tests?
Yes


Flag name on about://flags
No information provided

Finch feature name
DefaultMouseUpActionBeforeClickDispatched



Tracking bug
https://issues.chromium.org/issues/40686462

Estimated milestones
Shipping on desktop152
DevTrial on desktop150
Shipping on Android152
DevTrial on Android150
Shipping on WebView152


Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/5298387739082752

This intent message was generated by Chrome Platform Status.
Reply all
Reply to author
Forward
0 new messages