summaryrefslogtreecommitdiff
path: root/disable-openh264-download.patch
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2020-09-30 11:27:59 +0200
committerMartin Stransky <stransky@redhat.com>2020-09-30 11:27:59 +0200
commitd27db773287a244ff32554501cf94c8b58ce744a (patch)
tree0e1249330d88e3a77f2a7783c21e940763894afe /disable-openh264-download.patch
parentAdded openh264 fixes (diff)
downloadlibrewolf-fedora-ff-d27db773287a244ff32554501cf94c8b58ce744a.tar.gz
librewolf-fedora-ff-d27db773287a244ff32554501cf94c8b58ce744a.tar.bz2
librewolf-fedora-ff-d27db773287a244ff32554501cf94c8b58ce744a.zip
Disabled openh264 download
Diffstat (limited to 'disable-openh264-download.patch')
-rw-r--r--disable-openh264-download.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/disable-openh264-download.patch b/disable-openh264-download.patch
index 1064911..028b730 100644
--- a/disable-openh264-download.patch
+++ b/disable-openh264-download.patch
@@ -12,3 +12,28 @@ diff -up firefox-81.0/toolkit/modules/GMPInstallManager.jsm.old firefox-81.0/too
id: "gmp-widevinecdm",
src: "chrome://global/content/gmp-sources/widevinecdm.json",
},
+diff --git a/toolkit/content/jar.mn b/toolkit/content/jar.mn
+--- a/toolkit/content/jar.mn
++++ b/toolkit/content/jar.mn
+@@ -108,7 +108,6 @@ toolkit.jar:
+ #ifdef XP_MACOSX
+ content/global/macWindowMenu.js
+ #endif
+- content/global/gmp-sources/openh264.json (gmp-sources/openh264.json)
+ content/global/gmp-sources/widevinecdm.json (gmp-sources/widevinecdm.json)
+
+ # Third party files
+diff --git a/toolkit/modules/GMPInstallManager.jsm b/toolkit/modules/GMPInstallManager.jsm
+--- a/toolkit/modules/GMPInstallManager.jsm
++++ b/toolkit/modules/GMPInstallManager.jsm
+@@ -238,6 +234,9 @@ GMPInstallManager.prototype = {
+ * downloaderr, verifyerr or previouserrorencountered
+ */
+ installAddon(gmpAddon) {
++ if (gmpAddon.isOpenH264) {
++ return Promise.reject({ type: "disabled" });
++ }
+ if (this._deferred) {
+ let log = getScopedLogger("GMPInstallManager.installAddon");
+ log.error("previous error encountered");
+
bgstack15