From 116734a54e720093dd252d325907edbddc9a332e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A3o=20Gottwald?= Date: Fri, 2 Aug 2013 00:50:45 +0200 Subject: [PATCH] Bug 728773 - Always freeze the build ID in the UA string at 20100101. r=bz sr=gerv --- browser/branding/official/configure.sh | 1 - configure.in | 2 -- netwerk/protocol/http/nsHttpHandler.cpp | 6 +----- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/browser/branding/official/configure.sh b/browser/branding/official/configure.sh index 55f3f1836eb1..92ef14e03f40 100644 --- a/browser/branding/official/configure.sh +++ b/browser/branding/official/configure.sh @@ -3,4 +3,3 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. MOZ_APP_DISPLAYNAME=Firefox -MOZ_UA_BUILDID=20100101 diff --git a/configure.in b/configure.in index 00881d6066c2..2eda61df26a4 100644 --- a/configure.in +++ b/configure.in @@ -8749,8 +8749,6 @@ AC_SUBST(MOZ_UA_OS_AGNOSTIC) if test -n "$MOZ_UA_OS_AGNOSTIC"; then AC_DEFINE(MOZ_UA_OS_AGNOSTIC) fi -AC_DEFINE_UNQUOTED(MOZ_UA_BUILDID, "$MOZ_UA_BUILDID") -AC_SUBST(MOZ_UA_BUILDID) AC_SUBST(MOZ_APP_STATIC_INI) diff --git a/netwerk/protocol/http/nsHttpHandler.cpp b/netwerk/protocol/http/nsHttpHandler.cpp index 50c4debd0b83..83c016f6859b 100644 --- a/netwerk/protocol/http/nsHttpHandler.cpp +++ b/netwerk/protocol/http/nsHttpHandler.cpp @@ -309,12 +309,8 @@ nsHttpHandler::Init() #ifdef ANDROID mProductSub.AssignLiteral(MOZILLA_UAVERSION); #else - mProductSub.AssignLiteral(MOZ_UA_BUILDID); + mProductSub.AssignLiteral("20100101"); #endif - if (mProductSub.IsEmpty() && appInfo) - appInfo->GetPlatformBuildID(mProductSub); - if (mProductSub.Length() > 8) - mProductSub.SetLength(8); #if DEBUG // dump user agent prefs