Bug 1522547 - Log in MediaKeySession dtor. r=cpearce
authorBryce Van Dyk <bvandyk@mozilla.com>
Tue, 05 Mar 2019 16:21:30 +0000
changeset 520332 153245ec86c26f88beba43d7858cf5c517e22d84
parent 520331 c273b07bc5f06aa68c6d8d2ce7074941a9075cad
child 520333 062f54735111d741f9189f2c15e2b4da740783fa
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscpearce
bugs1522547
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1522547 - Log in MediaKeySession dtor. r=cpearce Differential Revision: https://phabricator.services.mozilla.com/D21982
dom/media/eme/MediaKeySession.cpp
--- a/dom/media/eme/MediaKeySession.cpp
+++ b/dom/media/eme/MediaKeySession.cpp
@@ -76,17 +76,20 @@ void MediaKeySession::SetSessionId(const
 
   if (NS_WARN_IF(!mSessionId.IsEmpty())) {
     return;
   }
   mSessionId = aSessionId;
   mKeys->OnSessionIdReady(this);
 }
 
-MediaKeySession::~MediaKeySession() {}
+MediaKeySession::~MediaKeySession() {
+  EME_LOG("MediaKeySession[%p,'%s'] dtor", this,
+          NS_ConvertUTF16toUTF8(mSessionId).get());
+}
 
 MediaKeyError* MediaKeySession::GetError() const { return mMediaKeyError; }
 
 void MediaKeySession::GetSessionId(nsString& aSessionId) const {
   aSessionId = GetSessionId();
 }
 
 const nsString& MediaKeySession::GetSessionId() const { return mSessionId; }