Bug 1571081 - Make MediaKeys correctly specify a NS_INTERFACE_MAP_ENTRY for nsISupports. r=mccr8 a=RyanVM
authorBryce Seager van Dyk <bvandyk@mozilla.com>
Mon, 19 Aug 2019 21:45:41 +0000
changeset 545202 729d67dfacef969c9527b6492fbffbef181ce70d
parent 545201 522b14ff237200dc29a918ab477c083648df568d
child 545203 b96a05e1dc18b6810eeca3dc23921416bc4a913b
push id2131
push userffxbld-merge
push dateMon, 26 Aug 2019 18:30:20 +0000
treeherdermozilla-release@b19ffb3ca153 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmccr8, RyanVM
bugs1571081, 1522547
milestone69.0
Bug 1571081 - Make MediaKeys correctly specify a NS_INTERFACE_MAP_ENTRY for nsISupports. r=mccr8 a=RyanVM Bug 1522547 overlooked the need for specifying map entries for both nsISupports and nsIDocumentActivity and only had the latter. This changeset adds the missing nsISupports case. Differential Revision: https://phabricator.services.mozilla.com/D42563
dom/media/eme/MediaKeys.cpp
--- a/dom/media/eme/MediaKeys.cpp
+++ b/dom/media/eme/MediaKeys.cpp
@@ -60,16 +60,17 @@ NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(Me
   NS_IMPL_CYCLE_COLLECTION_UNLINK(mDocument)
   NS_IMPL_CYCLE_COLLECTION_UNLINK_PRESERVED_WRAPPER
 NS_IMPL_CYCLE_COLLECTION_UNLINK_END
 
 NS_IMPL_CYCLE_COLLECTING_ADDREF(MediaKeys)
 NS_IMPL_CYCLE_COLLECTING_RELEASE(MediaKeys)
 NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(MediaKeys)
   NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
+  NS_INTERFACE_MAP_ENTRY(nsISupports)
   NS_INTERFACE_MAP_ENTRY(nsIDocumentActivity)
 NS_INTERFACE_MAP_END
 
 MediaKeys::MediaKeys(nsPIDOMWindowInner* aParent, const nsAString& aKeySystem,
                      const MediaKeySystemConfiguration& aConfig)
     : mParent(aParent),
       mKeySystem(aKeySystem),
       mCreatePromiseId(0),