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(
if (aValue.IsReject()) {
p = CapabilitiesPromise::CreateAndReject(
std::move(aValue.RejectValue()), __func__);
} else if (nsContentUtils::
ShouldResistFingerprinting()) {
p = CapabilitiesPromise::CreateAndResolve(
MediaCapabilitiesInfo(true, true, false),
} else {
if (StaticPrefs::media_mediacapabilities_from_database()) {
Supports Markdown
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