mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-24 16:17:29 +09:00
network: follow-up rev 914569c0b
This commit is contained in:
parent
f5814b5b94
commit
a50a1db5a7
1 changed files with 20 additions and 4 deletions
|
|
@ -353,7 +353,11 @@ nsHttpHandler::Init()
|
||||||
if (mCompatPlatformEnabled) {
|
if (mCompatPlatformEnabled) {
|
||||||
mProductSub.Assign(mCompatPlatformVersion);
|
mProductSub.Assign(mCompatPlatformVersion);
|
||||||
} else {
|
} else {
|
||||||
mProductSub.AssignLiteral(MOZILLA_UAVERSION);
|
if (mCompatPlatformEnabled) {
|
||||||
|
mProductSub.Assign(mCompatPlatformVersion);
|
||||||
|
} else {
|
||||||
|
mProductSub.Assign(mAppBuildID);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
mProductSub.Assign(mAppBuildID);
|
mProductSub.Assign(mAppBuildID);
|
||||||
|
|
@ -990,9 +994,17 @@ nsHttpHandler::PrefsChanged(nsIPrefBranch *prefs, const char *pref)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mCompatGeckoEnabled) {
|
if (mCompatGeckoEnabled) {
|
||||||
mProductSub.AssignLiteral(MOZILLA_UAVERSION);
|
if (mCompatPlatformEnabled) {
|
||||||
|
mProductSub.Assign(mCompatPlatformVersion);
|
||||||
|
} else {
|
||||||
|
mProductSub.AssignLiteral(MOZILLA_UAVERSION);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
mProductSub.Assign(mAppBuildID);
|
if (mCompatPlatformEnabled) {
|
||||||
|
mProductSub.Assign(mCompatPlatformVersion);
|
||||||
|
} else {
|
||||||
|
mProductSub.Assign(mAppBuildID);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// In case MOZILLA_UAVERSION is empty for some odd reason...
|
// In case MOZILLA_UAVERSION is empty for some odd reason...
|
||||||
if (mProductSub.IsEmpty()) {
|
if (mProductSub.IsEmpty()) {
|
||||||
|
|
@ -1019,7 +1031,11 @@ nsHttpHandler::PrefsChanged(nsIPrefBranch *prefs, const char *pref)
|
||||||
if (mCompatGeckoEnabled) {
|
if (mCompatGeckoEnabled) {
|
||||||
mMisc += mCompatFirefoxVersion;
|
mMisc += mCompatFirefoxVersion;
|
||||||
} else {
|
} else {
|
||||||
mMisc += MOZILLA_UAVERSION;
|
if (mCompatPlatformEnabled) {
|
||||||
|
mMisc += mCompatPlatformVersion;
|
||||||
|
} else {
|
||||||
|
mMisc += MOZILLA_UAVERSION;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
mCompatFirefox.AssignLiteral("Firefox/");
|
mCompatFirefox.AssignLiteral("Firefox/");
|
||||||
mCompatFirefox += mCompatFirefoxVersion;
|
mCompatFirefox += mCompatFirefoxVersion;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue