From 250b3fdb072a6f8b1be623a4466ec183c2ee0a31 Mon Sep 17 00:00:00 2001 From: Paul Adenot Date: Mon, 30 Jul 2018 10:07:34 +0200 Subject: [PATCH] Bug 1478843 - Consider HLS resources CORS cross-origin. r=jya --HG-- extra : rebase_source : ad47a391a42a73fc88cea1cf3cf2c8cfbefb0365 --- dom/media/hls/HLSDecoder.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/dom/media/hls/HLSDecoder.cpp b/dom/media/hls/HLSDecoder.cpp index b680756ec034..af3a1887b3ac 100644 --- a/dom/media/hls/HLSDecoder.cpp +++ b/dom/media/hls/HLSDecoder.cpp @@ -183,13 +183,8 @@ already_AddRefed HLSDecoder::GetCurrentPrincipal() { MOZ_ASSERT(NS_IsMainThread()); - nsCOMPtr principal; - nsIScriptSecurityManager* secMan = nsContentUtils::GetSecurityManager(); - if (!secMan || !mChannel) { - return nullptr; - } - secMan->GetChannelResultPrincipal(mChannel, getter_AddRefs(principal)); - return principal.forget(); + // Bug 1478843 + return nullptr; } void