You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Modern Media Controls] remove window event listeners at deinitialization
https://bugs.webkit.org/show_bug.cgi?id=280503
Reviewed by Ryan Reno.
DOMWindow keeps media controls object alive because of installed event listeners (see
JSDOMWindow::visitAdditionalChildren). This results in extra memory usage undil DOMWindow cleared (on top level
navigation).
Original patch by Eugene Mutavchi <[email protected]>.
* Source/WebCore/Modules/modern-media-controls/controls/media-controls.js:
(MediaControls.prototype.reenable):
* Source/WebCore/Modules/modern-media-controls/media/media-controller.js:
(MediaController.prototype.deinitialize):
(MediaController.prototype.reinitialize):
Canonical link: https://commits.webkit.org/284440@main
0 commit comments