Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
Tor Browser
Commits
9aeddd0b
Commit
9aeddd0b
authored
May 29, 2019
by
Georg Koppen
Committed by
Matthew Finkel
Feb 05, 2021
Browse files
Bug 30541: Disable WebGL readPixel() for web content
parent
51631259
Changes
1
Hide whitespace changes
Inline
Side-by-side
dom/canvas/ClientWebGLContext.cpp
View file @
9aeddd0b
...
...
@@ -4115,6 +4115,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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment