Bug 282421

Summary: Have Timer protect the object it is calling the timeout function on when possible
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: PlatformAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: darin, ggaren, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=282439
https://bugs.webkit.org/show_bug.cgi?id=282474

Chris Dumez
Reported 2024-10-31 19:40:05 PDT
Have Timer protect the object it is calling the timeout function on when possible. Otherwise, people have to remember to add a `protectedThis` protector at the beginning out of `timerFired()` functions, which is error prone.
Attachments
Chris Dumez
Comment 1 2024-10-31 19:51:19 PDT
I have it working. Will upload shortly.
Chris Dumez
Comment 2 2024-10-31 20:36:27 PDT
EWS
Comment 3 2024-11-01 11:16:31 PDT
Committed 286015@main (e6d75cd60444): <https://commits.webkit.org/286015@main> Reviewed commits have been landed. Closing PR #36033 and removing active labels.
Radar WebKit Bug Importer
Comment 4 2024-11-01 11:17:16 PDT
Note You need to log in before you can comment on or make changes to this bug.