Skip to content
Snippets Groups Projects
Verified Commit 49915074 authored by Georg Koppen's avatar Georg Koppen Committed by Pier Angelo Vendrame
Browse files

Bug 30541: Disable WebGL readPixel() for web content

parent 9d771026
No related branches found
No related tags found
2 merge requests!1202Bug_43099: 2024 YEC Strings,!1136Bug 43085: Rebased alpha onto 128.2.0esr
......@@ -5202,6 +5202,14 @@ bool ClientWebGLContext::ReadPixels_SharedPrecheck(
return false;
}
// Security check passed, but don't let content readPixel calls through for
// now, if Resist Fingerprinting Mode is enabled.
if (ShouldResistFingerprinting(RFPTarget::CanvasRandomization)) {
JsWarning("readPixels: Not allowed in Resist Fingerprinting Mode");
out_error.Throw(NS_ERROR_DOM_NOT_SUPPORTED_ERR);
return false;
}
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment