Skip to content
GitLab
Menu
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
2659c9c8
Commit
2659c9c8
authored
May 29, 2019
by
Georg Koppen
Committed by
Matthew Finkel
Mar 17, 2021
Browse files
Bug 30541: Disable WebGL readPixel() for web content
parent
3b0641f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
dom/canvas/ClientWebGLContext.cpp
View file @
2659c9c8
...
...
@@ -4118,6 +4118,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
.
Attach a 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