unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alex Vong <alexvong1995@gmail.com>
To: Jan Nieuwenhuizen <janneke@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: icecat: correct useragent to GNU GuixSD.
Date: Sat, 10 Sep 2016 20:47:55 +0800	[thread overview]
Message-ID: <87h99n9b0k.fsf@gmail.com> (raw)
In-Reply-To: <878tv0un7w.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Sat, 10 Sep 2016 11:18:43 +0200")

Hello,

Jan Nieuwenhuizen <janneke@gnu.org> writes:

> Hi!
>
> Attached simple patch fixes spreading of theh terribly ignoring lie that
> I would be running Windows NT.
>
> I'm probably displayng unimaginable ignorance here but it's beyond me
> why a project like Firefox would hardcode such a default.
>
While this is not verified by icecat devs, I think this is the desired
behaviour, to prevent others from fingerprinting you as a GNU/Linux
user. For example, tor browser also reports the user agent as
'Windows NT 6.1'.

To change the (reported) user agent, you can either use
random-agent-spoofer to change user agent perodically or User Agent
Switcher to change to a particular user agent.

> Greetings,
> Jan
>
Cheers,
Alex

> From c203a34e3f07b8c7e6c0381ef07a9ebde4d0ae29 Mon Sep 17 00:00:00 2001
> From: Jan Nieuwenhuizen <janneke@gnu.org>
> Date: Sat, 10 Sep 2016 10:00:38 +0200
> Subject: [PATCH] gnu: icecat: correct useragent to GNU GuixSD.
>
> * gnu/packages/patches/icecat-fix-useragent.patch: New file.
> * gnu/local.mk (dist_patch_DATA): Add it.
> * gnu/packages/gnuzilla.scm (icecat): Use it.
> ---
>  gnu/local.mk                                    |  1 +
>  gnu/packages/gnuzilla.scm                       |  2 ++
>  gnu/packages/patches/icecat-fix-useragent.patch | 11 +++++++++++
>  3 files changed, 14 insertions(+)
>  create mode 100644 gnu/packages/patches/icecat-fix-useragent.patch
>
> diff --git a/gnu/local.mk b/gnu/local.mk
> index dac938f..5b05628 100644
> --- a/gnu/local.mk
> +++ b/gnu/local.mk
> @@ -571,6 +571,7 @@ dist_patch_DATA =						\
>    %D%/packages/patches/hypre-doc-tables.patch			\
>    %D%/packages/patches/hypre-ldflags.patch			\
>    %D%/packages/patches/icecat-avoid-bundled-includes.patch	\
> +  %D%/packages/patches/icecat-fix-useragent.patch		\
>    %D%/packages/patches/icecat-CVE-2016-2818-pt1.patch		\
>    %D%/packages/patches/icecat-CVE-2016-2818-pt2.patch		\
>    %D%/packages/patches/icecat-CVE-2016-2818-pt3.patch		\
> diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
> index 27c8ede..881e783 100644
> --- a/gnu/packages/gnuzilla.scm
> +++ b/gnu/packages/gnuzilla.scm
> @@ -5,6 +5,7 @@
>  ;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com>
>  ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
>  ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
> +;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -306,6 +307,7 @@ standards.")
>          "1yb7a1zsqpra9cgq8hrzrbm5v31drb9367cwvwiksz0ngqy342hb"))
>        (patches (search-patches
>                  "icecat-avoid-bundled-includes.patch"
> +                "icecat-fix-useragent.patch"
>                  "icecat-CVE-2016-2818-pt1.patch"
>                  "icecat-CVE-2016-2818-pt2.patch"
>                  "icecat-CVE-2016-2818-pt3.patch"
> diff --git a/gnu/packages/patches/icecat-fix-useragent.patch b/gnu/packages/patches/icecat-fix-useragent.patch
> new file mode 100644
> index 0000000..e588085
> --- /dev/null
> +++ b/gnu/packages/patches/icecat-fix-useragent.patch
> @@ -0,0 +1,11 @@
> +--- icecat-38.8.0/browser/app/profile/icecat.js.orig	2016-09-10 09:56:30.809082564 +0200
> ++++ icecat-38.8.0/browser/app/profile/icecat.js	2016-09-10 09:56:59.957522723 +0200
> +@@ -2134,7 +2134,7 @@ pref("social.directories", "");
> + // Spoof the useragent to a generic one
> + pref("general.useragent.compatMode.firefox",true);
> + // Spoof the useragent to a generic one
> +-pref("general.useragent.override", "Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Firefox/38.0");
> ++pref("general.useragent.override", "Mozilla/5.0 (GNU GuixSD 0.11.0; rv:38.0) Gecko/20100101 Firefox/38.0");
> + pref("general.appname.override", "Netscape");
> + pref("general.appversion.override", "38.0");
> + pref("general.buildID.override", "Gecko/20100101");
> -- 
> 2.10.0

  parent reply	other threads:[~2016-09-10 12:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-10  9:18 [PATCH] gnu: icecat: correct useragent to GNU GuixSD Jan Nieuwenhuizen
2016-09-10 10:01 ` Vincent Legoll
2016-09-10 11:47 ` ng0
2016-09-10 12:39 ` Brendan Tildesley
2016-09-10 12:52   ` ng0
2016-09-10 12:47 ` Alex Vong [this message]
2016-09-10 12:51 ` Ludovic Courtès
2016-09-10 14:27   ` Jan Nieuwenhuizen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h99n9b0k.fsf@gmail.com \
    --to=alexvong1995@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=janneke@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).