WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
305752
[visionOS] WebAVPlayerController leaks when playing a video in Safari one window and entering tab overview in another window
https://bugs.webkit.org/show_bug.cgi?id=305752
Summary
[visionOS] WebAVPlayerController leaks when playing a video in Safari one win...
David Kilzer (:ddkilzer)
Reported
2026-01-18 21:42:29 PST
WebAVPlayerController leaks when playing a video in Safari one window and entering tab overview in another window on visionOS. In
Bug 245940
, a WebAVPlayerControllerForwarder_AVKitCompatible class was constructed at runtime as a subclass of AVPlayerController, but it was based on a local WebAVPlayerControllerForwarder class. However, because the _playerController instance variable was defined as RetainPtr<WebAVPlayerController>, that instance variable was dynamically added at runtime (but no -.cxx_destruct method was dynamically created to call the RetainPtr<WebAVPlayerController> destructor), and there was no -dealloc method defined that cleared _playerController, then the WebAVPlayerController leaked. Another bug caused by calling objc_registerClassPair() prior to class_addIvar() resulted in the _playerController instance variable never being created in the dynamic class, which caused the first instance variable of AVPlayerController (at offset 8) being overwritten by the RetainPtr<WebAVPlayerController> instance variable. (In practice this had no effect since the AVPlayerController class itself was only used as a superclass and its instance variables and methods were unused.) <
rdar://121550335
>
Attachments
Add attachment
proposed patch, testcase, etc.
David Kilzer (:ddkilzer)
Comment 1
2026-01-18 22:06:39 PST
Pull request:
https://github.com/WebKit/WebKit/pull/56811
EWS
Comment 2
2026-01-24 04:01:35 PST
Committed
306145@main
(30ae065f0e43): <
https://commits.webkit.org/306145@main
> Reviewed commits have been landed. Closing PR #56811 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug