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

fix: avoiding trigger touch events to inaccessible dom elements. #517

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

andycall
Copy link
Member

@andycall andycall commented Nov 7, 2023

The target element of a Touch object may be reclaimed by the JavaScript garbage collector, causing it to become invisible and inaccessible.

This update introduces checks to prevent the triggering of events on these invisible DOM targets.

image

@andycall andycall added this pull request to the merge queue Nov 7, 2023
Merged via the queue into main with commit acf7776 Nov 7, 2023
25 checks passed
@andycall andycall deleted the fix/disposed_touch_target_crash branch November 7, 2023 11:41
andycall added a commit that referenced this pull request Nov 18, 2023
The target element of a Touch object may be reclaimed by the JavaScript
garbage collector, causing it to become invisible and inaccessible.

This update introduces checks to prevent the triggering of events on
these invisible DOM targets.


<img width="892" alt="image"
src="https://github.com/openwebf/webf/assets/4409743/4db7d025-3114-4d5a-8587-31cfa7f06ae6">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants