|
|
d2e479 |
diff -up firefox-81.0/toolkit/modules/GMPInstallManager.jsm.old firefox-81.0/toolkit/modules/GMPInstallManager.jsm
|
|
|
d2e479 |
--- firefox-81.0/toolkit/modules/GMPInstallManager.jsm.old 2020-09-25 10:39:04.769458703 +0200
|
|
|
d2e479 |
+++ firefox-81.0/toolkit/modules/GMPInstallManager.jsm 2020-09-25 10:39:22.038504747 +0200
|
|
|
d2e479 |
@@ -54,10 +54,6 @@ function getScopedLogger(prefix) {
|
|
|
d2e479 |
|
|
|
d2e479 |
const LOCAL_GMP_SOURCES = [
|
|
|
d2e479 |
{
|
|
|
d2e479 |
- id: "gmp-gmpopenh264",
|
|
|
d2e479 |
- src: "chrome://global/content/gmp-sources/openh264.json",
|
|
|
d2e479 |
- },
|
|
|
d2e479 |
- {
|
|
|
d2e479 |
id: "gmp-widevinecdm",
|
|
|
d2e479 |
src: "chrome://global/content/gmp-sources/widevinecdm.json",
|
|
|
d2e479 |
},
|
|
|
d2e479 |
diff --git a/toolkit/content/jar.mn b/toolkit/content/jar.mn
|
|
|
d2e479 |
--- a/toolkit/content/jar.mn
|
|
|
d2e479 |
+++ b/toolkit/content/jar.mn
|
|
|
d2e479 |
@@ -108,7 +108,6 @@ toolkit.jar:
|
|
|
d2e479 |
#ifdef XP_MACOSX
|
|
|
d2e479 |
content/global/macWindowMenu.js
|
|
|
d2e479 |
#endif
|
|
|
d2e479 |
- content/global/gmp-sources/openh264.json (gmp-sources/openh264.json)
|
|
|
d2e479 |
content/global/gmp-sources/widevinecdm.json (gmp-sources/widevinecdm.json)
|
|
|
d2e479 |
|
|
|
d2e479 |
# Third party files
|
|
|
d2e479 |
diff --git a/toolkit/modules/GMPInstallManager.jsm b/toolkit/modules/GMPInstallManager.jsm
|
|
|
d2e479 |
--- a/toolkit/modules/GMPInstallManager.jsm
|
|
|
d2e479 |
+++ b/toolkit/modules/GMPInstallManager.jsm
|
|
|
d2e479 |
@@ -238,6 +234,9 @@ GMPInstallManager.prototype = {
|
|
|
d2e479 |
* downloaderr, verifyerr or previouserrorencountered
|
|
|
d2e479 |
*/
|
|
|
d2e479 |
installAddon(gmpAddon) {
|
|
|
d2e479 |
+ if (gmpAddon.isOpenH264) {
|
|
|
d2e479 |
+ return Promise.reject({ type: "disabled" });
|
|
|
d2e479 |
+ }
|
|
|
d2e479 |
if (this._deferred) {
|
|
|
d2e479 |
let log = getScopedLogger("GMPInstallManager.installAddon");
|
|
|
d2e479 |
log.error("previous error encountered");
|
|
|
d2e479 |
|