Verified Commit 6e15b036 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃
Browse files

fixup! Bug 30541: Disable WebGL readPixel() for web content

ShouldResistFinterprinting now always wants a target.
parent b4f10712
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -5135,8 +5135,7 @@ bool ClientWebGLContext::ReadPixels_SharedPrecheck(

  // Security check passed, but don't let content readPixel calls through for
  // now, if Resist Fingerprinting Mode is enabled.
  if (nsContentUtils::ShouldResistFingerprinting(aCallerType,
                                                 GetParentObject())) {
  if (ShouldResistFingerprinting()) {
    JsWarning("readPixels: Not allowed in Resist Fingerprinting Mode");
    out_error.Throw(NS_ERROR_DOM_NOT_SUPPORTED_ERR);
    return false;