Commit 13c80ca7 authored by Alex Catarineu's avatar Alex Catarineu Committed by Matthew Finkel
Browse files

Bug 13543: Spoof smooth and powerEfficient for Media Capabilities

parent 30eb4ced
...@@ -290,6 +290,11 @@ already_AddRefed<Promise> MediaCapabilities::DecodingInfo( ...@@ -290,6 +290,11 @@ already_AddRefed<Promise> MediaCapabilities::DecodingInfo(
if (aValue.IsReject()) { if (aValue.IsReject()) {
p = CapabilitiesPromise::CreateAndReject( p = CapabilitiesPromise::CreateAndReject(
std::move(aValue.RejectValue()), __func__); std::move(aValue.RejectValue()), __func__);
} else if (nsContentUtils::
ShouldResistFingerprinting()) {
p = CapabilitiesPromise::CreateAndResolve(
MediaCapabilitiesInfo(true, true, false),
__func__);
} else { } else {
MOZ_ASSERT(config->IsVideo()); MOZ_ASSERT(config->IsVideo());
if (StaticPrefs::media_mediacapabilities_from_database()) { if (StaticPrefs::media_mediacapabilities_from_database()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment