mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-25 09:57:32 +09:00
Issue #1751 -- Remove XP_MACOSX conditionals from the rest of the tree.
This also removes some PP abuse and takes file entries out of PP when no longer needed without XP_MACOSX conditionals.
This commit is contained in:
parent
02c59100a8
commit
a4b0f333ba
153 changed files with 173 additions and 4556 deletions
|
|
@ -41,11 +41,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;
|
||||
}
|
||||
|
|
@ -80,7 +75,7 @@ this.GMPUtils = {
|
|||
#endif
|
||||
} else if (aPlugin.id == WIDEVINE_ID) {
|
||||
|
||||
#if defined(XP_WIN) || defined(XP_LINUX) || defined(XP_MACOSX)
|
||||
#if defined(XP_WIN) || defined(XP_LINUX)
|
||||
// The Widevine plugin is available for Windows versions Vista and later,
|
||||
// Mac OSX, and Linux.
|
||||
return true;
|
||||
|
|
@ -92,14 +87,6 @@ this.GMPUtils = {
|
|||
return true;
|
||||
},
|
||||
|
||||
_is32bitModeMacOS: function() {
|
||||
#ifdef XP_MACOSX
|
||||
return Services.appinfo.XPCOMABI.split("-")[0] == "x86";
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
},
|
||||
|
||||
/**
|
||||
* 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