Bug 1724106 - Clarify threading usage when getting media debug info. r=alwu

Differential Revision: https://phabricator.services.mozilla.com/D124104
This commit is contained in:
Bryce Seager van Dyk
2022-03-29 22:17:58 +00:00
parent abf73d3b2a
commit a9985759da
7 changed files with 98 additions and 64 deletions

View File

@@ -7385,6 +7385,8 @@ void HTMLMediaElement::AsyncRejectPendingPlayPromises(nsresult aError) {
}
void HTMLMediaElement::GetEMEInfo(dom::EMEDebugInfo& aInfo) {
MOZ_ASSERT(NS_IsMainThread(),
"MediaKeys expects to be interacted with on main thread!");
if (!mMediaKeys) {
return;
}