Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 89a20910a56be13d2b83e33e800eea6f5ce3c283
https://github.com/WebKit/WebKit/commit/89a20910a56be13d2b83e33e800eea6f5ce3c283
Author: Philippe Normand <[email protected]>
Date: 2024-07-17 (Wed, 17 Jul 2024)
Changed paths:
M Source/WebCore/Modules/encryptedmedia/MediaKeySystemController.cpp
M Source/WebCore/Modules/encryptedmedia/MediaKeySystemController.h
M Source/WebKit/WebProcess/WebCoreSupport/WebMediaKeySystemClient.cpp
M Source/WebKit/WebProcess/WebCoreSupport/WebMediaKeySystemClient.h
Log Message:
-----------
[EME] MediaKeySystemController and client leaks
https://bugs.webkit.org/show_bug.cgi?id=276660
Reviewed by Andy Estes.
The client is now destroyed once the page has been destroyed. Driving-by, use
WeakRef in the client
to keep track of the page and make the controller non-copyable.
* Source/WebCore/Modules/encryptedmedia/MediaKeySystemController.cpp:
(WebCore::MediaKeySystemController::MediaKeySystemController):
(WebCore::provideMediaKeySystemTo):
* Source/WebCore/Modules/encryptedmedia/MediaKeySystemController.h:
* Source/WebKit/WebProcess/WebCoreSupport/WebMediaKeySystemClient.cpp:
(WebKit::WebMediaKeySystemClient::pageDestroyed):
(WebKit::WebMediaKeySystemClient::requestMediaKeySystem):
(WebKit::WebMediaKeySystemClient::cancelMediaKeySystemRequest):
* Source/WebKit/WebProcess/WebCoreSupport/WebMediaKeySystemClient.h:
(WebKit::WebMediaKeySystemClient::~WebMediaKeySystemClient): Deleted.
Canonical link: https://commits.webkit.org/281048@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes