Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 25e4e199bf08bb4fe27680b41e6daa7e44a46737
https://github.com/WebKit/WebKit/commit/25e4e199bf08bb4fe27680b41e6daa7e44a46737
Author: Simon Pena <[email protected]>
Date: 2026-06-03 (Wed, 03 Jun 2026)
Changed paths:
M Source/WebCore/Modules/encryptedmedia/MediaKeySession.cpp
Log Message:
-----------
REGRESSION(314352@main): [EME] Deferring MediaKeySession teardown leaks the
CDM session into the next test
https://bugs.webkit.org/show_bug.cgi?id=316101
Reviewed by Xabier Rodriguez-Calvar.
This makes MediaKeySession teardown synchronous again, instead avoiding
the promise resolution when we are tearing down.
Tests clearkey-mp4-playback-destroy-persistent-license.https.html and
clearkey-mp4-playback-retrieve-persistent-license.https.html cover the
CDM session leaking scenario, while
mock-MediaKeySession-backforwardcache-prune-crash.html verifies that
the promise is not incorrectly resolved.
* Source/WebCore/Modules/encryptedmedia/MediaKeySession.cpp:
(WebCore::MediaKeySession::sessionClosed):
(WebCore::MediaKeySession::stop):
Canonical link: https://commits.webkit.org/314438@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications