From 0643e338683f34e3b4fc063a8ef8f47d60e977b3 Mon Sep 17 00:00:00 2001 From: Fernando Fernandez Mancera Date: Sat, 6 Jan 2018 21:26:05 +0100 Subject: [PATCH] Bug 22548: Firefox downgrades VP9 videos to VP8. On systems where H.264 is not available or no HWA, VP9 is preferred. But in Tor Browser 7.0 all youtube videos are degraded to VP8. This behaviour can be turned off by setting media.benchmark.vp9.threshold to 0. All clients will get better experience and lower traffic, beause TBB doesn't use "Use hardware acceleration when available". --- browser/app/profile/000-tor-browser.js | 2 ++ modules/libpref/init/StaticPrefList.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/browser/app/profile/000-tor-browser.js b/browser/app/profile/000-tor-browser.js index 89f81f58b1f60..47d0e52194ecf 100644 --- a/browser/app/profile/000-tor-browser.js +++ b/browser/app/profile/000-tor-browser.js @@ -114,6 +114,8 @@ pref("webgl.enable-webgl2", false); pref("gfx.downloadable_fonts.fallback_delay", -1); pref("browser.startup.homepage_override.buildID", "20100101"); pref("browser.link.open_newwindow.restriction", 0); // Bug 9881: Open popups in new tabs (to avoid fullscreen popups) +// Set video VP9 to 0 for everyone (bug 22548) +pref("media.benchmark.vp9.threshold", 0); pref("dom.enable_resource_timing", false); // Bug 13024: To hell with this API pref("privacy.resistFingerprinting", true); pref("privacy.resistFingerprinting.block_mozAddonManager", true); // Bug 26114 diff --git a/modules/libpref/init/StaticPrefList.h b/modules/libpref/init/StaticPrefList.h index 0f8e063322150..47f4626f7e6bd 100644 --- a/modules/libpref/init/StaticPrefList.h +++ b/modules/libpref/init/StaticPrefList.h @@ -2117,7 +2117,7 @@ VARCACHE_PREF( VARCACHE_PREF( "media.benchmark.vp9.threshold", MediaBenchmarkVp9Threshold, - RelaxedAtomicUint32, 150 + RelaxedAtomicUint32, 0 ) VARCACHE_PREF( -- GitLab