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: protect DOMTimers until the ExecutingContext exits. #334

Merged
merged 2 commits into from
May 17, 2023

Conversation

andycall
Copy link
Member

@andycall andycall commented May 4, 2023

In some rare cases, DOMTimer may be accessed even if the timer has been canceled and removed from the DOMCoordinator. This could cause a BAD ACCESS crash since the timer's memory has been freed.

In this patch, we terminate the timer but do not immediately free it.

@andycall andycall enabled auto-merge May 17, 2023 06:29
@andycall andycall disabled auto-merge May 17, 2023 06:30
@andycall andycall added this pull request to the merge queue May 17, 2023
Merged via the queue into main with commit 81b758b May 17, 2023
@andycall andycall deleted the fix/protect_timers branch May 17, 2023 06:32
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