Bug 1194891. P1 - plumb 'isPrivateBrowsing' down to MediaCacheStream. r=cpearce

MozReview-Commit-ID: EBKkOfK7K1p
This commit is contained in:
JW Wang
2017-04-06 16:20:00 +08:00
parent 7beaffa7b5
commit 4a9179873b
5 changed files with 23 additions and 11 deletions

View File

@@ -4667,8 +4667,9 @@ nsresult HTMLMediaElement::InitializeDecoderForChannel(nsIChannel* aChannel,
LOG(LogLevel::Debug, ("%p Created decoder %p for type %s", this, decoder.get(), mimeType.get()));
RefPtr<MediaResource> resource =
MediaResource::Create(decoder->GetResourceCallback(), aChannel);
bool isPrivateBrowsing = nsContentUtils::IsInPrivateBrowsing(OwnerDoc());
RefPtr<MediaResource> resource = MediaResource::Create(
decoder->GetResourceCallback(), aChannel, isPrivateBrowsing);
if (!resource) {
decoder->Shutdown();