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
13c80ca7
Commit
13c80ca7
authored
Oct 10, 2019
by
Alex Catarineu
Committed by
Matthew Finkel
Feb 05, 2021
Browse files
Bug 13543: Spoof smooth and powerEfficient for Media Capabilities
parent
30eb4ced
Changes
1
Hide whitespace changes
Inline
Side-by-side
dom/media/mediacapabilities/MediaCapabilities.cpp
View file @
13c80ca7
...
...
@@ -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
.
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