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

gk at torproject.org gk at torproject.org
Fri Oct 11 18:58:35 UTC 2019


commit 990e3caf34672b64f30db79f585903b8ce4f88d6
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 cef653fd686a..148e2136ed2a 100644
--- a/dom/media/mediacapabilities/MediaCapabilities.cpp
+++ b/dom/media/mediacapabilities/MediaCapabilities.cpp
@@ -282,6 +282,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, true),
+                                __func__);
                           } else {
                             MOZ_ASSERT(config->IsVideo());
                             nsAutoCString reason;



More information about the tbb-commits mailing list