Bug 1187113 - Add more logging around EME promise rejects and method calls that often fail. r=edwin

This commit is contained in:
Chris Pearce
2015-07-27 11:52:19 +12:00
parent 15f8cf92b4
commit 0f8a9f5a55
11 changed files with 119 additions and 40 deletions

View File

@@ -4561,7 +4561,8 @@ HTMLMediaElement::SetMediaKeys(mozilla::dom::MediaKeys* aMediaKeys,
aRv.Throw(NS_ERROR_UNEXPECTED);
return nullptr;
}
nsRefPtr<DetailedPromise> promise = DetailedPromise::Create(global, aRv);
nsRefPtr<DetailedPromise> promise = DetailedPromise::Create(global, aRv,
NS_LITERAL_CSTRING("HTMLMediaElement.setMediaKeys"));
if (aRv.Failed()) {
return nullptr;
}