mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-31 11:37:30 +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
|
||||
|
|
|
|||
|
|
@ -1878,11 +1878,7 @@ var gHeader = {
|
|||
|
||||
// XXXunf Temporary until bug 371900 is fixed.
|
||||
let key = document.getElementById("focusSearch").getAttribute("key");
|
||||
#ifdef XP_MACOSX
|
||||
let keyModifier = aEvent.metaKey;
|
||||
#else
|
||||
let keyModifier = aEvent.ctrlKey;
|
||||
#endif
|
||||
if (String.fromCharCode(aEvent.charCode) == key && keyModifier) {
|
||||
this.focusSearchBox();
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
<!-- -*- Mode: XML; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- -->
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
|
||||
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
||||
<?xml-stylesheet href="chrome://mozapps/skin/extensions/update.css" type="text/css"?>
|
||||
|
|
@ -100,11 +100,7 @@
|
|||
oncommand="gUpdateWizard.shouldAutoCheck = this.checked;"/>
|
||||
</vbox>
|
||||
<separator flex="1"/>
|
||||
#ifndef XP_MACOSX
|
||||
<label>&clickFinish.label;</label>
|
||||
#else
|
||||
<label>&clickFinish.labelMac;</label>
|
||||
#endif
|
||||
<separator class="thin"/>
|
||||
</wizardpage>
|
||||
|
||||
|
|
@ -144,11 +140,7 @@
|
|||
<description flex="1">&installerrors.intro.label;</description>
|
||||
</hbox>
|
||||
<separator flex="1"/>
|
||||
#ifndef XP_MACOSX
|
||||
<label>&clickFinish.label;</label>
|
||||
#else
|
||||
<label>&clickFinish.labelMac;</label>
|
||||
#endif
|
||||
<separator class="thin"/>
|
||||
</wizardpage>
|
||||
|
||||
|
|
@ -161,11 +153,7 @@
|
|||
<description flex="1">&adminDisabled.warning.label;</description>
|
||||
</hbox>
|
||||
<separator flex="1"/>
|
||||
#ifndef XP_MACOSX
|
||||
<label>&clickFinish.label;</label>
|
||||
#else
|
||||
<label>&clickFinish.labelMac;</label>
|
||||
#endif
|
||||
<separator class="thin"/>
|
||||
</wizardpage>
|
||||
|
||||
|
|
@ -184,11 +172,7 @@
|
|||
oncommand="gUpdateWizard.shouldAutoCheck = this.checked;"/>
|
||||
</vbox>
|
||||
<separator flex="1"/>
|
||||
#ifndef XP_MACOSX
|
||||
<label>&clickFinish.label;</label>
|
||||
#else
|
||||
<label>&clickFinish.labelMac;</label>
|
||||
#endif
|
||||
<separator class="thin"/>
|
||||
</wizardpage>
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
EXTRA_JS_MODULES.addons += [
|
||||
'AddonLogging.jsm',
|
||||
'AddonRepository.jsm',
|
||||
'AddonRepository_SQLiteMigrator.jsm',
|
||||
'Content.js',
|
||||
'GMPProvider.jsm',
|
||||
|
|
@ -15,7 +16,6 @@ EXTRA_JS_MODULES.addons += [
|
|||
]
|
||||
|
||||
EXTRA_PP_JS_MODULES.addons += [
|
||||
'AddonRepository.jsm',
|
||||
'AddonUpdateChecker.jsm',
|
||||
'XPIProvider.jsm',
|
||||
'XPIProviderUtils.js',
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ toolkit.jar:
|
|||
content/mozapps/extensions/selectAddons.xml (content/selectAddons.xml)
|
||||
content/mozapps/extensions/selectAddons.js (content/selectAddons.js)
|
||||
content/mozapps/extensions/selectAddons.css (content/selectAddons.css)
|
||||
* content/mozapps/extensions/update.xul (content/update.xul)
|
||||
content/mozapps/extensions/update.xul (content/update.xul)
|
||||
content/mozapps/extensions/update.js (content/update.js)
|
||||
content/mozapps/extensions/eula.xul (content/eula.xul)
|
||||
content/mozapps/extensions/eula.js (content/eula.js)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue