[tbb-commits] [tor-browser/tor-browser-78.8.0esr-10.5-2] Bug 13543: Spoof smooth and powerEfficient for Media Capabilities

sysrqb at torproject.org sysrqb at torproject.org
Sun Feb 21 00:20:53 UTC 2021


commit 1a2adb278996ceeac321fa4912244c4dc01d214a
Author: Alex Catarineu <acat at torproject.org>
Date:   Thu Oct 10 15:08:12 2019 +0200

    Bug 13543: Spoof smooth and powerEfficient for Media Capabilities
---
 dom/media/mediacapabilities/MediaCapabilities.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dom/media/mediacapabilities/MediaCapabilities.cpp b/dom/media/mediacapabilities/MediaCapabilities.cpp
index fb1b1a2cb32c..3bc6b97eac63 100644
--- a/dom/media/mediacapabilities/MediaCapabilities.cpp
+++ b/dom/media/mediacapabilities/MediaCapabilities.cpp
@@ -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()) {





More information about the tbb-commits mailing list