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
0d341d12
Commit
0d341d12
authored
Oct 10, 2019
by
Alex Catarineu
Committed by
Matthew Finkel
Mar 17, 2021
Browse files
Bug 13543: Spoof smooth and powerEfficient for Media Capabilities
parent
9b050342
Changes
1
Hide whitespace changes
Inline
Side-by-side
dom/media/mediacapabilities/MediaCapabilities.cpp
View file @
0d341d12
...
...
@@ -290,6 +290,11 @@ already_AddRefed<Promise> MediaCapabilities::DecodingInfo(
if
(
aValue
.
IsReject
())
{
p
=
CapabilitiesPromise
::
CreateAndReject
(
std
::
move
(
aValue
.
RejectValue
()),
__func__
);
}
else
if
(
nsContentUtils
::
ShouldResistFingerprinting
())
{
p
=
CapabilitiesPromise
::
CreateAndResolve
(
MediaCapabilitiesInfo
(
true
,
true
,
false
),
__func__
);
}
else
{
MOZ_ASSERT
(
config
->
IsVideo
());
if
(
StaticPrefs
::
media_mediacapabilities_from_database
())
{
...
...
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