зеркало из https://github.com/mozilla/gecko-dev.git
d693392c8d
MediaKeys objects are typically created and associated with an HTMLMediaElement, however it is possible to create a MediaKeys object and not associate it with an HTMLMediaElement. This resulted in an issue where these MediaKeys would keep alive other components that would assert during bowrser shutdown (see bug 1522547). We anticipated that MediaKeys associated with an HTMLMediaElement would need to be shutdown if their owning document became inactive, but were not handling the case where the keys never became associated with an element. This patch has the MediaKeys listen directly to their owning document for activity change. The MediaKeys will shutdown if their document becomes inactive. This avoids MediaKeys not associated with HTMLMediaElements keeping other objects alive during browser shutdown. Differential Revision: https://phabricator.services.mozilla.com/D21983 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
mediadrm | ||
CDMCaps.cpp | ||
CDMCaps.h | ||
CDMProxy.h | ||
DecryptorProxyCallback.h | ||
DetailedPromise.cpp | ||
DetailedPromise.h | ||
EMEUtils.cpp | ||
EMEUtils.h | ||
MediaEncryptedEvent.cpp | ||
MediaEncryptedEvent.h | ||
MediaKeyError.cpp | ||
MediaKeyError.h | ||
MediaKeyMessageEvent.cpp | ||
MediaKeyMessageEvent.h | ||
MediaKeySession.cpp | ||
MediaKeySession.h | ||
MediaKeyStatusMap.cpp | ||
MediaKeyStatusMap.h | ||
MediaKeySystemAccess.cpp | ||
MediaKeySystemAccess.h | ||
MediaKeySystemAccessManager.cpp | ||
MediaKeySystemAccessManager.h | ||
MediaKeys.cpp | ||
MediaKeys.h | ||
moz.build |