Bug 7503 - Midori reports the wrong user agent - pretends to be OSX Safari
Summary: Midori reports the wrong user agent - pretends to be OSX Safari
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 2
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Cesar Vargas
QA Contact:
URL: http://superuser.com/questions/471988...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-17 13:37 CEST by claire robinson
Modified: 2013-10-24 23:39 CEST (History)
0 users

See Also:
Source RPM: midori
CVE:
Status comment:


Attachments

Description claire robinson 2012-09-17 13:37:46 CEST
I included a link to the solution

http://superuser.com/questions/471988/why-does-midori-on-fedora-linux-pretend-to-be-safari-on-mac-os-x

Midori user agent is reported as:

"Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-gb) AppleWebKit/535+ (KHTML, like Gecko) Version/5.0 Safari/535.22+ Midori/0.4"

It apparently stems from being set to 'Automatic' instead of 'Midori'

I'm not sure if it's a good idea to change it or not but thought it worth reporting.


Copied from the link..

Midori identifies as OS X Safari when set to Automatic. Choose Midori to override it.

From midori/midori-websettings.h:

typedef enum
{
    MIDORI_IDENT_MIDORI /* Automatic */,
    MIDORI_IDENT_GENUINE /* Midori */,
    MIDORI_IDENT_SAFARI,
    // etc.
} MidoriIdentity;



midori/midori-websettings.c:

switch (identify_as)
{
case MIDORI_IDENT_GENUINE:
    return g_strdup_printf ("Mozilla/5.0 (%s %s) AppleWebKit/%d.%d+ %s",
        platform, os, webcore_major, webcore_minor, appname);
case MIDORI_IDENT_MIDORI:
case MIDORI_IDENT_SAFARI:
    g_object_set (web_settings, "enable-site-specific-quirks", TRUE, NULL);
    return g_strdup_printf ("Mozilla/5.0 (Macintosh; U; Intel Mac OS X; %s) "
        "AppleWebKit/%d+ (KHTML, like Gecko) Version/5.0 Safari/%d.%d+ %s",
        lang, webcore_major, webcore_major, webcore_minor, appname);
// etc.
Comment 1 claire robinson 2012-09-17 13:43:28 CEST
The workaround:

Go to Preferences > Network > Identify As, and choose Midori

It then identifies as:

"Mozilla/5.0 (X11; Linux) AppleWebKit/535.22+ Midori/0.4"
Manuel Hiebel 2012-09-19 23:49:46 CEST

Assignee: bugsquad => cvargas

Comment 2 Manuel Hiebel 2013-10-22 12:18:46 CEST
This message is a reminder that Mageia 2 is nearing its end of life.
Approximately one month from now Mageia will stop maintaining and issuing updates for Mageia 2. At that time this bug will be closed as WONTFIX (EOL) if it remains open with a Mageia 'version' of '2'.

Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Mageia version prior to Mageia 2's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Mageia 2 is end of life.  If you would still like to see this bug fixed and are able to reproduce it against a later version of Mageia, you are encouraged to click on "Version" and change it against that version of Mageia.

Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Mageia release includes newer upstream software that fixes bugs or makes them obsolete.

-- 
The Mageia Bugsquad
Comment 3 claire robinson 2013-10-24 08:33:21 CEST
Seems fixed in mga3:

"Mozilla/5.0 (X11; Linux) AppleWebKit/537.6 (KHTML, like Gecko) Chrome/18.0.1025.133 Safari/537.6 Midori/0.4"
Comment 4 Manuel Hiebel 2013-10-24 23:39:53 CEST
closing them as I guess nobody will fix it in mga2, thanks

Status: NEW => RESOLVED
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.