mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-24 09:27:31 +09:00
Merge remote-tracking branch 'origin/master' into custom
This commit is contained in:
commit
d4582b821c
153 changed files with 172 additions and 4555 deletions
|
|
@ -42,11 +42,6 @@ this.GMPUtils = {
|
|||
* The plugin to check.
|
||||
*/
|
||||
isPluginHidden: function(aPlugin) {
|
||||
if (this._is32bitModeMacOS()) {
|
||||
// GMPs are hidden on MacOS when running in 32 bit mode.
|
||||
// See bug 1291537.
|
||||
return true;
|
||||
}
|
||||
if (!aPlugin.isEME) {
|
||||
return false;
|
||||
}
|
||||
|
|
@ -79,20 +74,12 @@ this.GMPUtils = {
|
|||
// The Widevine plugin is available for Windows versions Vista and later,
|
||||
// Mac OSX, and Linux.
|
||||
return AppConstants.isPlatformAndVersionAtLeast("win", "6") ||
|
||||
AppConstants.platform == "macosx" ||
|
||||
AppConstants.platform == "linux";
|
||||
}
|
||||
|
||||
return true;
|
||||
},
|
||||
|
||||
_is32bitModeMacOS: function() {
|
||||
if (AppConstants.platform != "macosx") {
|
||||
return false;
|
||||
}
|
||||
return Services.appinfo.XPCOMABI.split("-")[0] == "x86";
|
||||
},
|
||||
|
||||
/**
|
||||
* Checks whether or not a given plugin is visible in the addons manager
|
||||
* UI and the "enable DRM" notification box. This can be used to test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue