mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-14 03:07:31 +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
|
|
@ -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