Skip to content

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 force-pushed the fix/protect_timers branch from 62b37e2 to e8a9d62 Compare May 13, 2023 10:33
@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