mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-31 11:37:30 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
7f068ecce3
969 changed files with 96279 additions and 469 deletions
|
|
@ -42,6 +42,11 @@ 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,6 +85,14 @@ 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,7 +1878,11 @@ 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;
|
||||
|
|
|
|||
|
|
@ -100,7 +100,11 @@
|
|||
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>
|
||||
|
||||
|
|
@ -140,7 +144,11 @@
|
|||
<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>
|
||||
|
||||
|
|
@ -153,7 +161,11 @@
|
|||
<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>
|
||||
|
||||
|
|
@ -172,7 +184,11 @@
|
|||
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>
|
||||
|
||||
|
|
|
|||
|
|
@ -206,14 +206,6 @@ const RESTARTLESS_TYPES = new Set([
|
|||
"locale",
|
||||
]);
|
||||
|
||||
// Keep track of where we are in startup.
|
||||
// event happened during XPIDatabase.startup()
|
||||
const XPI_STARTING = "XPIStarting";
|
||||
// event happened after startup() but before the final-ui-startup event
|
||||
const XPI_BEFORE_UI_STARTUP = "BeforeFinalUIStartup";
|
||||
// event happened after final-ui-startup
|
||||
const XPI_AFTER_UI_STARTUP = "AfterFinalUIStartup";
|
||||
|
||||
const COMPATIBLE_BY_DEFAULT_TYPES = {
|
||||
extension: true,
|
||||
dictionary: true
|
||||
|
|
@ -1833,8 +1825,6 @@ this.XPIProvider = {
|
|||
allAppGlobal: true,
|
||||
// A string listing the enabled add-ons for annotating crash reports
|
||||
enabledAddons: null,
|
||||
// Keep track of startup phases.
|
||||
runPhase: XPI_STARTING,
|
||||
// Keep track of the newest file in each add-on, in case we want to
|
||||
// report it.
|
||||
_mostRecentlyModifiedFile: {},
|
||||
|
|
@ -2008,7 +1998,6 @@ this.XPIProvider = {
|
|||
|
||||
try {
|
||||
logger.debug("startup");
|
||||
this.runPhase = XPI_STARTING;
|
||||
this.installs = [];
|
||||
this.installLocations = [];
|
||||
this.installLocationsByName = {};
|
||||
|
|
@ -2179,7 +2168,6 @@ this.XPIProvider = {
|
|||
}, "quit-application-granted", false);
|
||||
|
||||
this.extensionsActive = true;
|
||||
this.runPhase = XPI_BEFORE_UI_STARTUP;
|
||||
}
|
||||
catch (e) {
|
||||
logger.error("startup failed", e);
|
||||
|
|
|
|||
|
|
@ -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