Closed Bug 1526732 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 14911 - Set click count correctly to dispatch "dblclick" event

Categories

(Testing :: web-platform-tests, enhancement, P4)

enhancement

Tracking

(firefox67 fixed)

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 14911 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/14911
Details from upstream follow.

Lan Wei <lanwei@chromium.org> wrote:

Set click count correctly to dispatch "dblclick" event

In order to dispatch the "dblclick" event to DOM by sending synthetic
mouse events, we have to check the most recent two mouse press events.
If their dispatched times and locations are close enough, we will set
the mouse event's click count to 2, which will generate the "dblclick"
event.

Bug: 606367
Change-Id: I049d6463c6bf1393c9e8b496662359eeeef7682b
Reviewed-on: https://chromium-review.googlesource.com/1413362
WPT-Export-Revision: 1677d28d1fc5de434b3778b91df44040a8f54957

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Component: web-platform-tests → DOM: Events
Product: Testing → Core
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Ran 2 tests and 4 subtests
OK     : 2
PASS   : 3
FAIL   : 1

New tests that have failures or other problems:
/uievents/click/auxclick_event.html
    auxclick event sequence received.: FAIL
Component: DOM: Events → web-platform-tests
Product: Core → Testing
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/cc6673d871d1
[wpt PR 14911] - Set click count correctly to dispatch "dblclick" event, a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/11e5c7e27821
[wpt PR 14911] - Update wpt metadata, a=testonly
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/280b4d2466dd
[wpt PR 14911] - Set click count correctly to dispatch "dblclick" event, a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/c4418df3a573
[wpt PR 14911] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
You need to log in before you can comment on or make changes to this bug.