Bug 1331763 - part1: Support EME content for AudioContext::CreateMediaElementSource; r=cpearce

MozReview-Commit-ID: 1OMySAPCH4i

--HG--
extra : rebase_source : abd014ffc19976abbfdb523b6a172e42a3a80521
This commit is contained in:
Chun-Min Chang 2017-05-15 13:21:28 +08:00
parent 0f30c92978
commit da52aad1f7
2 changed files with 1 additions and 6 deletions

View File

@ -3361,7 +3361,7 @@ HTMLMediaElement::CaptureStreamInternal(bool aFinishWhenEnded,
if (!window) {
return nullptr;
}
if (ContainsRestrictedContent()) {
if (!aCaptureAudio && ContainsRestrictedContent()) {
return nullptr;
}

View File

@ -25,11 +25,6 @@ MediaElementAudioSourceNode::Create(AudioContext& aAudioContext,
return nullptr;
}
if (aOptions.mMediaElement->ContainsRestrictedContent()) {
aRv.Throw(NS_ERROR_DOM_NOT_SUPPORTED_ERR);
return nullptr;
}
if (aAudioContext.CheckClosed(aRv)) {
return nullptr;
}