Skip to content

Commit

Permalink
Bug 815743 - Part 2: Backed out bug 588909. a=lsblakk
Browse files Browse the repository at this point in the history
--HG--
extra : transplant_source : %0A%D48%28%F1%88%AB%18D%D3%FB%16%24M%C3%FEDK%B0%F9
  • Loading branch information
daogottwald committed Aug 10, 2012
1 parent 67593c7 commit d6dc23f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions browser/branding/official/configure.sh
Expand Up @@ -3,3 +3,4 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

MOZ_APP_DISPLAYNAME=Firefox
MOZ_UA_BUILDID=20100101
2 changes: 2 additions & 0 deletions configure.in
Expand Up @@ -8517,6 +8517,8 @@ 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)

# We can't use the static application.ini data when building against
# a libxul SDK.
Expand Down
8 changes: 8 additions & 0 deletions netwerk/protocol/http/nsHttpHandler.cpp
Expand Up @@ -276,7 +276,15 @@ nsHttpHandler::Init()
rv = InitConnectionMgr();
if (NS_FAILED(rv)) return rv;

#ifdef ANDROID
mProductSub.AssignLiteral(MOZILLA_UAVERSION);
#else
mProductSub.AssignLiteral(MOZ_UA_BUILDID);
#endif
if (mProductSub.IsEmpty() && appInfo)
appInfo->GetPlatformBuildID(mProductSub);
if (mProductSub.Length() > 8)
mProductSub.SetLength(8);

#if DEBUG
// dump user agent prefs
Expand Down

0 comments on commit d6dc23f

Please sign in to comment.