From 1c8e85a305a903bf42b45e42fc9765d7443ad623 Mon Sep 17 00:00:00 2001 From: Martin Stransky Date: Mon, 9 Feb 2015 18:20:06 +0100 Subject: Fixed rhbz#1190774 - update usear agent string for Fedora --- firefox-fedora-ua.patch | 21 +++++++++++++++++++++ firefox.spec | 7 ++++++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 firefox-fedora-ua.patch diff --git a/firefox-fedora-ua.patch b/firefox-fedora-ua.patch new file mode 100644 index 0000000..a5b7866 --- /dev/null +++ b/firefox-fedora-ua.patch @@ -0,0 +1,21 @@ +diff -up firefox-35.0.1/mozilla-release/media/webrtc/trunk/Makefile.old firefox-35.0.1/mozilla-release/media/webrtc/trunk/Makefile +diff -up firefox-35.0.1/mozilla-release/netwerk/protocol/http/nsHttpHandler.cpp.old firefox-35.0.1/mozilla-release/netwerk/protocol/http/nsHttpHandler.cpp +--- firefox-35.0.1/mozilla-release/netwerk/protocol/http/nsHttpHandler.cpp.old 2015-01-23 07:00:06.000000000 +0100 ++++ firefox-35.0.1/mozilla-release/netwerk/protocol/http/nsHttpHandler.cpp 2015-02-09 16:40:42.983220596 +0100 +@@ -607,7 +607,7 @@ nsHttpHandler::BuildUserAgent() + mUserAgent.SetCapacity(mLegacyAppName.Length() + + mLegacyAppVersion.Length() + + #ifndef UA_SPARE_PLATFORM +- mPlatform.Length() + ++ mPlatform.Length() + 8 + + #endif + mOscpu.Length() + + mMisc.Length() + +@@ -631,6 +631,7 @@ nsHttpHandler::BuildUserAgent() + if (!mPlatform.IsEmpty()) { + mUserAgent += mPlatform; + mUserAgent.AppendLiteral("; "); ++ mUserAgent.AppendLiteral("Fedora; "); + } + #endif + if (!mCompatDevice.IsEmpty()) { diff --git a/firefox.spec b/firefox.spec index d65cb3d..b5c18d1 100644 --- a/firefox.spec +++ b/firefox.spec @@ -107,7 +107,7 @@ Summary: Mozilla Firefox Web browser Name: firefox Version: 35.0.1 -Release: 4%{?pre_tag}%{?dist} +Release: 5%{?pre_tag}%{?dist} URL: http://www.mozilla.org/projects/firefox/ License: MPLv1.1 or GPLv2+ or LGPLv2+ Group: Applications/Internet @@ -140,6 +140,7 @@ Patch204: rhbz-966424.patch Patch215: firefox-enable-addons.patch Patch219: rhbz-1173156.patch Patch220: rhbz-1014858.patch +Patch221: firefox-fedora-ua.patch # Upstream patches Patch300: mozilla-858919.patch @@ -295,6 +296,7 @@ cd %{tarballdir} %patch215 -p1 -b .addons %patch219 -p2 -b .rhbz-1173156 %patch220 -p1 -b .rhbz-1014858 +%patch221 -p2 -b .fedora-ua # Upstream patches %patch300 -p1 -b .858919 @@ -764,6 +766,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : #--------------------------------------------------------------------- %changelog +* Mon Feb 9 2015 Martin Stransky - 35.0.1-5 +- Fixed rhbz#1190774 - update usear agent string for Fedora + * Wed Feb 04 2015 Petr Machata - 35.0.1-4 - Bump for rebuild. -- cgit