Bug 588909 - Replace Gecko/<date> with Gecko/<version> in UA string. r=bz sr=gerv

This commit is contained in:
Dão Gottwald 2012-02-17 13:21:29 +01:00
parent 2295d5a688
commit 794c8a0fac
4 changed files with 1 additions and 13 deletions

View File

@ -1,2 +1 @@
MOZ_APP_DISPLAYNAME=Firefox
MOZ_UA_BUILDID=20100101

View File

@ -57,7 +57,6 @@ MOZ_PROFILE_MIGRATOR = @MOZ_PROFILE_MIGRATOR@
MOZ_EXTENSION_MANAGER = @MOZ_EXTENSION_MANAGER@
MOZ_APP_UA_NAME = @MOZ_APP_UA_NAME@
MOZ_APP_VERSION = @MOZ_APP_VERSION@
MOZ_UA_BUILDID = @MOZ_UA_BUILDID@
MOZ_MACBUNDLE_NAME = @MOZ_MACBUNDLE_NAME@
MOZ_APP_STATIC_INI = @MOZ_APP_STATIC_INI@

View File

@ -8650,8 +8650,6 @@ AC_SUBST(MOZ_APP_VERSION)
AC_DEFINE_UNQUOTED(MOZ_UA_FIREFOX_VERSION, "$FIREFOX_VERSION")
AC_DEFINE_UNQUOTED(FIREFOX_VERSION,$FIREFOX_VERSION)
AC_SUBST(FIREFOX_VERSION)
AC_DEFINE_UNQUOTED(MOZ_UA_BUILDID, "$MOZ_UA_BUILDID")
AC_SUBST(MOZ_UA_BUILDID)
# We can't use the static application.ini data when building against
# a libxul SDK.

View File

@ -307,15 +307,7 @@ nsHttpHandler::Init()
rv = InitConnectionMgr();
if (NS_FAILED(rv)) return rv;
#ifdef ANDROID
mProductSub.AssignLiteral(MOZ_APP_UA_VERSION);
#else
mProductSub.AssignLiteral(MOZ_UA_BUILDID);
#endif
if (mProductSub.IsEmpty() && appInfo)
appInfo->GetPlatformBuildID(mProductSub);
if (mProductSub.Length() > 8)
mProductSub.SetLength(8);
mProductSub.AssignLiteral(MOZILLA_VERSION);
// Startup the http category
// Bring alive the objects in the http-protocol-startup category