Bug 728773 - Always freeze the build ID in the UA string at 20100101. r=bz sr=gerv

This commit is contained in:
Dão Gottwald 2013-08-02 00:50:45 +02:00
parent 975bc25be6
commit 116734a54e
3 changed files with 1 additions and 8 deletions

View File

@ -3,4 +3,3 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOZ_APP_DISPLAYNAME=Firefox MOZ_APP_DISPLAYNAME=Firefox
MOZ_UA_BUILDID=20100101

View File

@ -8749,8 +8749,6 @@ AC_SUBST(MOZ_UA_OS_AGNOSTIC)
if test -n "$MOZ_UA_OS_AGNOSTIC"; then if test -n "$MOZ_UA_OS_AGNOSTIC"; then
AC_DEFINE(MOZ_UA_OS_AGNOSTIC) AC_DEFINE(MOZ_UA_OS_AGNOSTIC)
fi fi
AC_DEFINE_UNQUOTED(MOZ_UA_BUILDID, "$MOZ_UA_BUILDID")
AC_SUBST(MOZ_UA_BUILDID)
AC_SUBST(MOZ_APP_STATIC_INI) AC_SUBST(MOZ_APP_STATIC_INI)

View File

@ -309,12 +309,8 @@ nsHttpHandler::Init()
#ifdef ANDROID #ifdef ANDROID
mProductSub.AssignLiteral(MOZILLA_UAVERSION); mProductSub.AssignLiteral(MOZILLA_UAVERSION);
#else #else
mProductSub.AssignLiteral(MOZ_UA_BUILDID); mProductSub.AssignLiteral("20100101");
#endif #endif
if (mProductSub.IsEmpty() && appInfo)
appInfo->GetPlatformBuildID(mProductSub);
if (mProductSub.Length() > 8)
mProductSub.SetLength(8);
#if DEBUG #if DEBUG
// dump user agent prefs // dump user agent prefs