forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1695574 - Make `PresShell::EventHandler::HandleEventUsingCoordina…
…tes` keep handling touch events after preceding pointer event target is removed r=smaug,edgar,dom-core As far as investigating the behavior of the other browsers, touch events are dispatched the same target as the preceding `pointerdown` even after the target is removed from the DOM tree. However, the following pointer events are dispatched on the target as usual (i.e., the element under the pointer except when the pointer is captured). However, our code stops handling touch events if the preceding `pointerdown` removes the target and not dispatching `touchstart` causes not dispatching the following touch events so that no `click` event is fired. This patch makes the touch event dispatching path work without frame and keep handling even with an orphan event target. Differential Revision: https://phabricator.services.mozilla.com/D202811
- Loading branch information
1 parent
495637f
commit 9f0669c
Showing
6 changed files
with
437 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
testing/web-platform/meta/pointerevents/pointerup_after_pointerdown_target_removed.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
[pointerup_after_pointerdown_target_removed.html?pen] | ||
[pointerup event from pen fired after pointerdown target is removed] | ||
expected: FAIL | ||
|
||
|
||
[pointerup_after_pointerdown_target_removed.html?touch] | ||
[pointerup event from touch fired after pointerdown target is removed] | ||
expected: FAIL |
Oops, something went wrong.