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

Bug 30541: Disable WebGL readPixel() for web content

parent 13c641a3
Branches
Tags
1 merge request!940Bug 42448: Rebase Tor Browser stable onto Firefox 115.9.0esr
......@@ -5133,6 +5133,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()) {
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