mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-21 06:37:30 +09:00
Issue #2301 - Make Gecko Media Plugins optional when not building EME or WebRTC
Co-authored-by: Moonchild <moonchild@palemoon.org>
This commit is contained in:
parent
57020c1f59
commit
9e7d1492e6
54 changed files with 314 additions and 30 deletions
|
|
@ -52,7 +52,7 @@ toolkit.jar:
|
|||
#ifdef MOZ_PHOENIX
|
||||
content/global/logopage.xhtml
|
||||
#endif
|
||||
content/global/process-content.js
|
||||
* content/global/process-content.js
|
||||
content/global/resetProfile.css
|
||||
content/global/resetProfile.js
|
||||
content/global/resetProfile.xul
|
||||
|
|
@ -122,6 +122,8 @@ toolkit.jar:
|
|||
content/global/macWindowMenu.js
|
||||
#endif
|
||||
content/global/svg/svgBindings.xml (/layout/svg/resources/content/svgBindings.xml)
|
||||
#ifdef MOZ_GMP
|
||||
content/global/gmp-sources/eme-adobe.json (gmp-sources/eme-adobe.json)
|
||||
content/global/gmp-sources/openh264.json (gmp-sources/openh264.json)
|
||||
content/global/gmp-sources/widevinecdm.json (gmp-sources/widevinecdm.json)
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -14,12 +14,14 @@ Cu.import("resource://gre/modules/Services.jsm");
|
|||
|
||||
const gInContentProcess = Services.appinfo.processType == Ci.nsIXULRuntime.PROCESS_TYPE_CONTENT;
|
||||
|
||||
#ifdef MOZ_GMP
|
||||
Services.cpmm.addMessageListener("gmp-plugin-crash", msg => {
|
||||
let gmpservice = Cc["@mozilla.org/gecko-media-plugin-service;1"]
|
||||
.getService(Ci.mozIGeckoMediaPluginService);
|
||||
|
||||
gmpservice.RunPluginCrashCallbacks(msg.data.pluginID, msg.data.pluginName);
|
||||
});
|
||||
#endif
|
||||
|
||||
if (gInContentProcess) {
|
||||
let ProcessObserver = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue