mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 23:27:30 +09:00
Just about almost totally fix GMP
This commit is contained in:
parent
3c6b3e42c1
commit
0e6e573e4e
2 changed files with 13 additions and 4 deletions
|
|
@ -41,7 +41,7 @@ const GMP_PLUGINS = [
|
||||||
{
|
{
|
||||||
id: OPEN_H264_ID,
|
id: OPEN_H264_ID,
|
||||||
name: "openH264_name",
|
name: "openH264_name",
|
||||||
description: "openH264_description",
|
description: "openH264_description2",
|
||||||
// The following licenseURL is part of an awful hack to include the OpenH264
|
// The following licenseURL is part of an awful hack to include the OpenH264
|
||||||
// license without having bug 624602 fixed yet, and intentionally ignores
|
// license without having bug 624602 fixed yet, and intentionally ignores
|
||||||
// localisation.
|
// localisation.
|
||||||
|
|
@ -62,7 +62,7 @@ const GMP_PLUGINS = [
|
||||||
XPCOMUtils.defineLazyGetter(this, "pluginsBundle",
|
XPCOMUtils.defineLazyGetter(this, "pluginsBundle",
|
||||||
() => Services.strings.createBundle("chrome://global/locale/plugins.properties"));
|
() => Services.strings.createBundle("chrome://global/locale/plugins.properties"));
|
||||||
XPCOMUtils.defineLazyGetter(this, "gmpService",
|
XPCOMUtils.defineLazyGetter(this, "gmpService",
|
||||||
() => Cc["@mozilla.org/goanna-media-plugin-service;1"].getService(Ci.mozIGoannaMediaPluginService));
|
() => Cc["@mozilla.org/gecko-media-plugin-service;1"].getService(Ci.mozIGeckoMediaPluginChromeService));
|
||||||
|
|
||||||
let messageManager = Cc["@mozilla.org/globalmessagemanager;1"]
|
let messageManager = Cc["@mozilla.org/globalmessagemanager;1"]
|
||||||
.getService(Ci.nsIMessageListenerManager);
|
.getService(Ci.nsIMessageListenerManager);
|
||||||
|
|
@ -549,8 +549,16 @@ let GMPProvider = {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let results = [p.wrapper for ([id, p] of this._plugins)
|
// Tycho:
|
||||||
if (!GMPUtils.isPluginHidden(p))];
|
// let results = [p.wrapper for ([id, p] of this._plugins)
|
||||||
|
// if (!GMPUtils.isPluginHidden(p))];
|
||||||
|
let results = [];
|
||||||
|
for (let [id, p] of this._plugins) {
|
||||||
|
if (!GMPUtils.isPluginHidden(p)) {
|
||||||
|
results.push(p.wrapper);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
aCallback(results);
|
aCallback(results);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
EXTRA_JS_MODULES.addons += [
|
EXTRA_JS_MODULES.addons += [
|
||||||
|
'../../webextensions/internal/ProductAddonChecker.jsm',
|
||||||
'AddonLogging.jsm',
|
'AddonLogging.jsm',
|
||||||
'AddonRepository_SQLiteMigrator.jsm',
|
'AddonRepository_SQLiteMigrator.jsm',
|
||||||
'Content.js',
|
'Content.js',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue