OS details in wrong spot in User Agent in Epiphany

Bug #1591780 reported by Cassidy James Blaede
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
elementary OS
Won't Fix
Wishlist
Unassigned

Bug Description

It is conventional to format user agents like `Mozilla/[version] ([system and browser information]) [platform] ([platform details]) [extensions]` (see: https://en.wikipedia.org/wiki/User_agent#Format_for_human-operated_web_browsers).

Right now we're inserting "elementary OS/0.4 (Loki)" into the User Agent, but the space between "elementary" and "OS" is not valid there and the whole string is not in the system and browser information area.

So instead of:

```Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/602.1 (KHTML, like Gecko) Version/8.0 Safari/602.1 elementary OS/0.4 (Loki) Epiphany/3.18.5```

we should do something more like:

```Mozilla/5.0 (X11; Linux x86_64; elementary OS 0.4) AppleWebKit/602.1 (KHTML, like Gecko) Version/8.0 Safari/602.1 Epiphany/3.18.5```

if possible.

Tags: epiphany
tags: added: epiphany
Changed in elementaryos:
milestone: none → loki-rc1
Cody Garver (codygarver)
Changed in elementaryos:
importance: Undecided → Wishlist
Cody Garver (codygarver)
Changed in elementaryos:
status: New → Triaged
Revision history for this message
Danielle Foré (danrabbit) wrote :

After some discussion with Cody, sounds like this is a "Won't Fix"

Changed in elementaryos:
status: Triaged → Won't Fix
milestone: loki-rc1 → none
Revision history for this message
Michael Catanzaro (mike-catanzaro) wrote :

We have a requirement for this in Fedora. There is a patch you can use in https://bugs.webkit.org/show_bug.cgi?id=162611 if you want. Note: if you patch WebKit, you will want to remove your customized Epiphany UA suffix so that it doesn't appear in the UA twice.

The patch actually implements:

(X11; elementary OS 0.4; Linux x86_64)

It might be safer to flip them around, like suggested in the first comment.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.