Commit cd44a7ec authored by Georg Koppen's avatar Georg Koppen Committed by Matthew Finkel
Browse files

Bug 30541: Disable WebGL readPixel() for web content

parent 6697b746
...@@ -4619,6 +4619,14 @@ bool ClientWebGLContext::ReadPixels_SharedPrecheck( ...@@ -4619,6 +4619,14 @@ bool ClientWebGLContext::ReadPixels_SharedPrecheck(
return false; 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");
return false;
return true; return true;
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment