Bug 1299718 part 3 - call MarkAsContentSource() at where using video element as a source; r=gerald,kamidphish,mtseng

MozReview-Commit-ID: Kg6UpcsCi0P
This commit is contained in:
kaku@mozilla.com
2016-09-02 08:52:44 +00:00
committed by Dan Glastonbury
parent 3e4dcf7643
commit 788fd469db
3 changed files with 8 additions and 1 deletions

View File

@@ -2546,6 +2546,8 @@ HTMLMediaElement::CaptureStreamInternal(bool aFinishWhenEnded,
{
MOZ_RELEASE_ASSERT(aGraph);
MarkAsContentSource(CallerAPI::CAPTURE_STREAM);
nsPIDOMWindowInner* window = OwnerDoc()->GetInnerWindow();
if (!window) {
return nullptr;