Closed Bug 1403055 Opened 7 years ago Closed 7 years ago

[Pointer Event] Revise the implementation to fire boundary events by handling pointercancel and pointerup

Categories

(Core :: DOM: Events, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla58
Tracking Status
firefox58 --- fixed

People

(Reporter: stone, Assigned: stone)

References

Details

Attachments

(2 files)

Now we fire boundary events by handling pointerup and pointercancel in ESM::PostHandleEvent. We call GenerateMouseEnterExit twice when handling pointercancel.
See Also: → 1316251
Blocks: 822898
Assignee: nobody → sshih
Now we call GenerateMouseEnterExit twice when handling pointercancel. The second one is redundant since we do some checks in GenerateMouseEnterExit. And we should call GenerateMouseEnterExit before removing the entry in mPointersEnterLeaveHelper, which is used in GenerateMouseEnterExit.

Trying to fix the incorrect handling of pointercancel and pointerup and merge them together.
Comment on attachment 8914030 [details]
Bug 1403055 Part1: Revise the implementation to fire boundary events by handling pointercancel and pointerup.

https://reviewboard.mozilla.org/r/185424/#review190410

Thank you for separating the bug for this change. Let's try this. I wonder, can or do we have automated tests for this? If you'll add automated tests for this, please add new patch and request review to me.
Attachment #8914030 - Flags: review?(masayuki) → review+
Comment on attachment 8914584 [details]
Bug 1403055 Part2: Add a test to make sure we fire pointerout and pointerleave before pointercancel.

https://reviewboard.mozilla.org/r/185930/#review190890

Looks good and please check if this runs as expected in <iframe> of the test harness before landing. (Perhaps, running per directory is enough to check it.)
Attachment #8914584 - Flags: review?(masayuki) → review+
Pushed by sshih@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/a10c13ddb8b7
Part1: Revise the implementation to fire boundary events by handling pointercancel and pointerup. r=masayuki
https://hg.mozilla.org/integration/mozilla-inbound/rev/49820a586d6d
Part2: Add a test to make sure we fire pointerout and pointerleave before pointercancel. r=masayuki
https://hg.mozilla.org/mozilla-central/rev/a10c13ddb8b7
https://hg.mozilla.org/mozilla-central/rev/49820a586d6d
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: