Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Gecko Bug 1888013] part 0-1: Port the part.6 of test_bug977003.html to WPT #46275

Merged
merged 4 commits into from
May 15, 2024

Conversation

moz-wptsync-bot
Copy link
Collaborator

Differential Revision: https://phabricator.services.mozilla.com/D206206

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1888013
gecko-commit: 4e67f3c5729f204d5c05e2dff3c151467c2a54e1
gecko-reviewers: smaug

Differential Revision: https://phabricator.services.mozilla.com/D206206

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1888013
gecko-commit: 4e67f3c5729f204d5c05e2dff3c151467c2a54e1
gecko-reviewers: smaug
Differential Revision: https://phabricator.services.mozilla.com/D206207

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1888013
gecko-commit: 2f7976103a99c4a5bdfb28573c73e534a30862cd
gecko-reviewers: smaug
The spec defines that pointer boundary events should be fired before a pointer
event if the element under the pointer has been changed from previously
dispatching another pointer event.

https://w3c.github.io/pointerevents/#dfn-fire-a-pointer-event
> Before firing this event, the user agent SHOULD treat the target as if the
> pointing device has moved over it from the previousTarget for the purpose of
> ensuring event ordering.

And releasing pointer capture should be treated as changing an element under the
pointer if the pointer is outside the element which lost the capture.
Therefore, those tests should expect that `pointerout` should be fired on
the capturing element because `pointerover` should be fired on the target.

Differential Revision: https://phabricator.services.mozilla.com/D206208

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1888013
gecko-commit: 9276776c01e334df8728dff924ba8d374d8f951a
gecko-reviewers: smaug
…re dispatching an `ePointerUp

"fire a pointer event" is defined as:

https://w3c.github.io/pointerevents/#dfn-fire-a-pointer-event
> Before firing this event, the user agent SHOULD treat the target as if the
> pointing device has moved over it from the previousTarget for the purpose of
> ensuring event ordering.

Therefore, `pointerup` should imply a pointer move and cause pointer boundary
events before it's dispatched (and after that if non-hoverable pointer, see
`pointerup` definition about this).  In most cases, it's not required when the
input device does not support hover state.  However, if the touch target is
removed from the tree, the removed element stopped capturing the pointer.  In
this case, we need to synthesize pointer boundary events before dispatching
`pointerup` like inputs from hoverable pointer.

Differential Revision: https://phabricator.services.mozilla.com/D206209

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1888013
gecko-commit: 9317687169b17887ad155591bfa2049a70fe418d
gecko-reviewers: smaug, edgar, dom-core
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Firefox project.

@moz-wptsync-bot moz-wptsync-bot merged commit 5fe29b5 into master May 15, 2024
19 checks passed
@moz-wptsync-bot moz-wptsync-bot deleted the gecko/1888013 branch May 15, 2024 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants