gecko-dev/dom/media/eme
Bryce Van Dyk d693392c8d Bug 1522547 - Have MediaKeys observe if the owning document becomes inactive so it can shutdown. r=cpearce
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
2019-03-05 16:21:40 +00:00
..
mediadrm Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
CDMCaps.cpp Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
CDMCaps.h Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
CDMProxy.h Backed out changeset d37ccbbcd36d (bug 1522951) for Android build bustages on MediaDrmCDMProxy.h CLOSED TREE 2019-01-31 22:42:35 +02:00
DecryptorProxyCallback.h Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
DetailedPromise.cpp Bug 1523969 part 6 - Move method definition inline comments to new line in 'dom/'. r=nika 2019-02-25 16:05:29 -06:00
DetailedPromise.h Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
EMEUtils.cpp Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
EMEUtils.h Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
MediaEncryptedEvent.cpp Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
MediaEncryptedEvent.h Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
MediaKeyError.cpp Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
MediaKeyError.h Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
MediaKeyMessageEvent.cpp Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
MediaKeyMessageEvent.h Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
MediaKeySession.cpp Bug 1522547 - Log in MediaKeySession dtor. r=cpearce 2019-03-05 16:21:30 +00:00
MediaKeySession.h Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
MediaKeyStatusMap.cpp Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
MediaKeyStatusMap.h Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
MediaKeySystemAccess.cpp Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
MediaKeySystemAccess.h Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
MediaKeySystemAccessManager.cpp Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
MediaKeySystemAccessManager.h Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
MediaKeys.cpp Bug 1522547 - Have MediaKeys observe if the owning document becomes inactive so it can shutdown. r=cpearce 2019-03-05 16:21:40 +00:00
MediaKeys.h Bug 1522547 - Have MediaKeys observe if the owning document becomes inactive so it can shutdown. r=cpearce 2019-03-05 16:21:40 +00:00
moz.build Bug 1520559. Move DataMutex from EME to xpcom/threads. r=froydnj 2019-01-17 15:09:18 +00:00