Commit 09cfe6db authored by Alex Catarineu's avatar Alex Catarineu
Browse files

Bug 13543: Spoof smooth and powerEfficient for Media Capabilities

parent a8866b1a
......@@ -288,6 +288,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()) {
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