mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-04 14:27:30 +09:00
Revert "Add a next preprocessing to Troubleshot.jsm"
This reverts commit 6ac05db3d6f771a3a572a5701e0dbe88754f47b3.
This commit is contained in:
parent
1b0ffd8a7b
commit
185269cb62
1 changed files with 7 additions and 9 deletions
|
|
@ -10,6 +10,7 @@ const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
||||||
|
|
||||||
Cu.import("resource://gre/modules/AddonManager.jsm");
|
Cu.import("resource://gre/modules/AddonManager.jsm");
|
||||||
Cu.import("resource://gre/modules/Services.jsm");
|
Cu.import("resource://gre/modules/Services.jsm");
|
||||||
|
Cu.import("resource://gre/modules/AppConstants.jsm");
|
||||||
|
|
||||||
// We use a preferences whitelist to make sure we only show preferences that
|
// We use a preferences whitelist to make sure we only show preferences that
|
||||||
// are useful for support and won't compromise the user's privacy. Note that
|
// are useful for support and won't compromise the user's privacy. Note that
|
||||||
|
|
@ -176,17 +177,16 @@ var dataProviders = {
|
||||||
let data = {
|
let data = {
|
||||||
name: Services.appinfo.name,
|
name: Services.appinfo.name,
|
||||||
osVersion: sysInfo.getProperty("name") + " " + sysInfo.getProperty("version"),
|
osVersion: sysInfo.getProperty("name") + " " + sysInfo.getProperty("version"),
|
||||||
|
version: AppConstants.MOZ_APP_VERSION_DISPLAY,
|
||||||
buildID: Services.appinfo.appBuildID,
|
buildID: Services.appinfo.appBuildID,
|
||||||
userAgent: Cc["@mozilla.org/network/protocol;1?name=http"].
|
userAgent: Cc["@mozilla.org/network/protocol;1?name=http"].
|
||||||
getService(Ci.nsIHttpProtocolHandler).
|
getService(Ci.nsIHttpProtocolHandler).
|
||||||
userAgent,
|
userAgent,
|
||||||
safeMode: Services.appinfo.inSafeMode,
|
safeMode: Services.appinfo.inSafeMode,
|
||||||
};
|
};
|
||||||
#expand let data.version = "__MOZ_APP_VERSION_DISPLAY__";
|
|
||||||
|
|
||||||
#ifdef MOZ_UPDATER
|
if (AppConstants.MOZ_UPDATER)
|
||||||
data.updateChannel = Cu.import("resource://gre/modules/UpdateUtils.jsm", {}).UpdateUtils.UpdateChannel;
|
data.updateChannel = Cu.import("resource://gre/modules/UpdateUtils.jsm", {}).UpdateUtils.UpdateChannel;
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_64BIT_BUILD
|
#ifdef HAVE_64BIT_BUILD
|
||||||
data.versionArch = "64-bit";
|
data.versionArch = "64-bit";
|
||||||
|
|
@ -356,11 +356,9 @@ var dataProviders = {
|
||||||
data.currentAudioBackend = winUtils.currentAudioBackend;
|
data.currentAudioBackend = winUtils.currentAudioBackend;
|
||||||
|
|
||||||
if (!data.numAcceleratedWindows && gfxInfo) {
|
if (!data.numAcceleratedWindows && gfxInfo) {
|
||||||
#ifdef XP_WIN
|
let win = AppConstants.platform == "win";
|
||||||
let feature = gfxInfo.FEATURE_DIRECT3D_9_LAYERS;
|
let feature = win ? gfxInfo.FEATURE_DIRECT3D_9_LAYERS :
|
||||||
#else
|
gfxInfo.FEATURE_OPENGL_LAYERS;
|
||||||
let feature = gfxInfo.FEATURE_OPENGL_LAYERS;
|
|
||||||
#endif
|
|
||||||
data.numAcceleratedWindowsMessage = statusMsgForFeature(feature);
|
data.numAcceleratedWindowsMessage = statusMsgForFeature(feature);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue