Commit f8d5019d authored by Cristian Tuns's avatar Cristian Tuns
Browse files

Backed out changeset 6d4600975de9 (bug 1834049) for causing wpt failures in...

Backed out changeset 6d4600975de9 (bug 1834049) for causing wpt failures in MediaStreamTrack-contentHint.html CLOSED TREE
parent 37fe7917
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -821,6 +821,11 @@ already_AddRefed<CanvasCaptureMediaStream> HTMLCanvasElement::CaptureStream(
    return nullptr;
  }

  if (!mCurrentContext) {
    aRv.Throw(NS_ERROR_NOT_INITIALIZED);
    return nullptr;
  }

  auto stream = MakeRefPtr<CanvasCaptureMediaStream>(window, this);

  nsCOMPtr<nsIPrincipal> principal = NodePrincipal();