Bug 1432031 Disable a MOZ_ASSERT that could start firing on 60
I'll be fixing this for real this release, but I don't want to be triggering asserts for everyone.
MozReview-Commit-ID: 1UhsCYiGtNp
--- a/toolkit/components/resistfingerprinting/nsRFPService.cpp
+++ b/toolkit/components/resistfingerprinting/nsRFPService.cpp
@@ -267,20 +267,21 @@ nsRFPService::GetSpoofedUserAgent(nsACSt
nsAutoCString updateChannel;
rv = runtime->GetDefaultUpdateChannel(updateChannel);
NS_ENSURE_SUCCESS(rv, rv);
// If we are running in Firefox ESR, determine whether the formula of ESR
// version has changed. Once changed, we must update the formula in this
// function.
- if (updateChannel.EqualsLiteral("esr")) {
- MOZ_ASSERT(((firefoxVersion % 7) == 3),
- "Please udpate ESR version formula in nsRFPService.cpp");
- }
+ // TODO: tjr Will be fixed very soon. See Bug 1432031 and related
+ //if (updateChannel.EqualsLiteral("esr")) {
+ //MOZ_ASSERT(((firefoxVersion % 7) == 3),
+ // "Please udpate ESR version formula in nsRFPService.cpp");
+ //}
uint32_t spoofedVersion = firefoxVersion - ((firefoxVersion - 3) % 7);
userAgent.Assign(nsPrintfCString(
"Mozilla/5.0 (%s; rv:%d.0) Gecko/%s Firefox/%d.0",
SPOOFED_UA_OS, spoofedVersion, LEGACY_BUILD_ID, spoofedVersion));
return rv;
}