Bug 1334111 - Log MediaKeySystemConfiguration on creation of MediaKeySystemAccess. r=gerald

This makes it easier to tell what's going on; whether we've created a
MediaKeySystemConfiguration which can persist state.

MozReview-Commit-ID: L4dbmMVYhsM

--HG--
extra : rebase_source : e47e60f5091b6b5477b2c8bd63ba408922706082
This commit is contained in:
Chris Pearce 2017-05-29 11:02:15 +12:00
parent 098502268f
commit 7442ac32b0

View File

@ -50,6 +50,9 @@ NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(MediaKeySystemAccess)
NS_INTERFACE_MAP_ENTRY(nsISupports)
NS_INTERFACE_MAP_END
static nsCString
ToCString(const MediaKeySystemConfiguration& aConfig);
MediaKeySystemAccess::MediaKeySystemAccess(nsPIDOMWindowInner* aParent,
const nsAString& aKeySystem,
const MediaKeySystemConfiguration& aConfig)
@ -57,6 +60,8 @@ MediaKeySystemAccess::MediaKeySystemAccess(nsPIDOMWindowInner* aParent,
, mKeySystem(aKeySystem)
, mConfig(aConfig)
{
EME_LOG("Created MediaKeySystemAccess for keysystem=%s config=%s",
NS_ConvertUTF16toUTF8(mKeySystem).get(), mozilla::dom::ToCString(mConfig).get());
}
MediaKeySystemAccess::~MediaKeySystemAccess()