Closed Bug 1968724 Opened 1 year ago Closed 1 year ago

Investigate why we can't get correct interactionIds of "enter" simulated click events

Categories

(Core :: DOM: Performance APIs, defect)

defect

Tracking

()

RESOLVED FIXED
141 Branch
Tracking Status
firefox141 --- fixed

People

(Reporter: canova, Assigned: canova)

References

Details

Attachments

(1 file, 1 obsolete file)

Currently this INP test is failing: testing/web-platform/tests/event-timing/interactionid-keyboard-event-simulated-click-link-enter.html.

It looks like it's something related to how we handle non-pointer id click events that are coming from enter. Previously I worked on this patch to make this work with space button (for the other two wpt tests). But it looks like enter key is not working properly. We need to investigate why and fix it.

Also this is not completely specced yet, here's the spec issue I filed while fixing the other keys: https://github.com/w3c/event-timing/issues/147 Spec author is on board with the idea of adding this to the spec.

mLastKeydownInteractionValue was initially assigned in keyup instead of
keydown because the spec was initially generating the interactionId of
keydown while we are at keyup, so it was delaying the keydown events.
But since bug 1964426, we don't do this delayed assignment for keydown
events.

So it's a lot easier to implement the correct fix for this after bug 1964426.
Now we simply move this mLastKeydownInteractionValue assignment
to keydown event. Which is the correct location.

Attachment #9490996 - Attachment is obsolete: true

mLastKeydownInteractionValue was initially assigned in keyup instead of
keydown because the spec was initially generating the interactionId of
keydown while we are at keyup, so it was delaying the keydown events.
But since bug 1964426, we don't do this delayed assignment for keydown
events.

So it's a lot easier to implement the correct fix for this after bug 1964426.
Now we simply move this mLastKeydownInteractionValue assignment
to keydown event. Which is the correct location.

Pushed by canaltinova@gmail.com: https://hg.mozilla.org/integration/autoland/rev/249ae391393b Assign the last keydown interaction value on keydown instead of keyup r=sefeng
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 141 Branch
QA Whiteboard: [qa-triage-done-c142/b141]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: