Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 1337f64ad12082bf549309e2eaec87e7e99a470a
https://github.com/WebKit/WebKit/commit/1337f64ad12082bf549309e2eaec87e7e99a470a
Author: Franco Vieira de Souza <[email protected]>
Date: 2025-10-24 (Fri, 24 Oct 2025)
Changed paths:
A
LayoutTests/imported/w3c/web-platform-tests/event-timing/gap-keydown-keyup-expected.txt
A
LayoutTests/imported/w3c/web-platform-tests/event-timing/gap-keydown-keyup.html
A
LayoutTests/imported/w3c/web-platform-tests/event-timing/gap-pointerdown-pointerup-expected.txt
A
LayoutTests/imported/w3c/web-platform-tests/event-timing/gap-pointerdown-pointerup.html
M LayoutTests/platform/gtk/TestExpectations
M LayoutTests/platform/ios/TestExpectations
M LayoutTests/platform/win/TestExpectations
M LayoutTests/platform/wpe/TestExpectations
M Source/WebCore/page/LocalDOMWindow.cpp
Log Message:
-----------
[EventTiming] keydown PerformanceEntry duration is always too long (waits for
keyup event?)
https://bugs.webkit.org/show_bug.cgi?id=300102
rdar://161911473
Reviewed by Ryan Reno.
LocalDOMWindowdispatchPendingEventTimingEntries() now assigns duration
to pending entries with nonzero duration, and doesn't overwrite
that value when queuing. Entries whose duration would round to zero
are assigned 1ms, avoiding being reassigned; this value is not exposed
to the user, as it is later rounded to zero.
Tests which verify this behavior were added; those introduce a
significant gap between the down and up events to make sure the
deferred down event had its duration set before the dispatch of
the up event:
*
LayoutTests/imported/w3c/web-platform-tests/event-timing/gap-keydown-keyup.html
*
LayoutTests/imported/w3c/web-platform-tests/event-timing/gap-pointerdown-pointerup.html
Unfortunately, WKTR is unable to properly send actions chains with
unpaired down/up events in several platforms, which required these
tests to be skipped a lot.
Canonical link: https://commits.webkit.org/302107@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications