Android keyboard INP sampler

#41485748 Filed 2023-12-19 Accepted / P3 / S5

Test

Repeatedly show and hide the virtual keyboard

Tap an input, then tap Hide keyboard. Repeat at least 20 times. The page performs no layout or application work in the input handlers; it only changes the marker text so the interaction has visible feedback.

Waiting for an interaction.

Event Timing results

-latest duration
-maximum duration
0interactions
eventdurationinput delayprocessingpresentation
No interactions reported yet.

Durations are coarsened by the Event Timing API. A large presentation component with negligible processing is the signature relevant to this issue. Frame source IDs are internal and are not available to page JavaScript.

Expected behavior

Legitimate delay remains measurable

Slow presentation from the same compositor frame source remains part of INP. Presentation feedback from a newly-created frame source must not resolve an older paint request with an unrelated timestamp; Chromium falls back to the paint time in that case.