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

Bug 30541: Disable WebGL readPixel() for web content

parent 8ddaa8b6
Branches
Tags
1 merge request!636Bug 41757: Rebased Tor Browser alpha to 102.11.0esr
......@@ -4904,6 +4904,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 (nsContentUtils::ResistFingerprinting(aCallerType)) {
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.
Please to comment