Skip to content
Snippets Groups Projects
Verified Commit acf31eaa authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern:
Browse files

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

parent 09359fb0
Branches
No related tags found
1 merge request!641Bug 41759: Rebase Base Browser to 115 Nightly
......@@ -5135,7 +5135,8 @@ 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::ResistFingerprinting(aCallerType)) {
if (nsContentUtils::ShouldResistFingerprinting(aCallerType,
GetParentObject())) {
JsWarning("readPixels: Not allowed in Resist Fingerprinting Mode");
out_error.Throw(NS_ERROR_DOM_NOT_SUPPORTED_ERR);
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment