Bug 1478843 - Consider HLS resources CORS cross-origin. r=jya
authorPaul Adenot <paul@paul.cx>
Mon, 30 Jul 2018 10:07:34 +0200
changeset 494906 19d5e50db843b03d4aed8e5f5736a531035c9cf0
parent 494905 5f6fd031d3a63aba355463845998e004f8b6c34c
child 494907 231b53d76122680bb682eb74cc73615a9a554f31
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjya
bugs1478843
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1478843 - Consider HLS resources CORS cross-origin. r=jya
dom/media/hls/HLSDecoder.cpp
--- a/dom/media/hls/HLSDecoder.cpp
+++ b/dom/media/hls/HLSDecoder.cpp
@@ -178,23 +178,18 @@ HLSDecoder::AddSizeOfResources(ResourceS
   MOZ_ASSERT(NS_IsMainThread());
   // TODO: track JAVA wrappers.
 }
 
 already_AddRefed<nsIPrincipal>
 HLSDecoder::GetCurrentPrincipal()
 {
   MOZ_ASSERT(NS_IsMainThread());
-  nsCOMPtr<nsIPrincipal> principal;
-  nsIScriptSecurityManager* secMan = nsContentUtils::GetSecurityManager();
-  if (!secMan || !mChannel) {
-    return nullptr;
-  }
-  secMan->GetChannelResultPrincipal(mChannel, getter_AddRefs(principal));
-  return principal.forget();
+  // Bug 1478843
+  return nullptr;
 }
 
 void
 HLSDecoder::Play()
 {
   MOZ_ASSERT(NS_IsMainThread());
   HLS_DEBUG("HLSDecoder", "MediaElement called Play");
   mHLSResourceWrapper->Play();