Changeset 56731 in webkit


Ignore:
Timestamp:
Mar 29, 2010 10:50:17 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-03-29 Kenneth Rohde Christiansen <kenneth@webkit.org>

Reviewed by Antti Koivisto.

Use 'Mobile Safari' instead of 'Safari' on mobile Qt platforms.

  • Api/qwebpage.cpp: (QWebPage::userAgentForUrl):
Location:
trunk/WebKit/qt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/qt/Api/qwebpage.cpp

    r56718 r56731  
    31553155    "Mozilla/5.0 (%Platform%; %Security%; %Subplatform%; %Locale%) AppleWebKit/%WebKitVersion% (KHTML, like Gecko) %AppVersion Safari/%WebKitVersion%"
    31563156
     3157    On mobile platforms such as Symbian S60 and Maemo, "Mobile Safari" is used instead of "Safari".
     3158
    31573159    In this string the following values are replaced at run-time:
    31583160    \list
     
    33863388    }
    33873389
    3388     ua.append(QString(QLatin1String(" Safari/%1"))
    3389                       .arg(qWebKitVersion()));
    3390 
     3390#if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5)
     3391    ua.append(QString(QLatin1String(" Mobile Safari/%1")).arg(qWebKitVersion()));
     3392#else
     3393    ua.append(QString(QLatin1String(" Safari/%1")).arg(qWebKitVersion()));
     3394#endif
    33913395    return ua;
    33923396}
  • trunk/WebKit/qt/ChangeLog

    r56721 r56731  
     12010-03-29  Kenneth Rohde Christiansen  <kenneth@webkit.org>
     2
     3        Reviewed by Antti Koivisto.
     4
     5        Use 'Mobile Safari' instead of 'Safari' on mobile Qt platforms.
     6
     7        * Api/qwebpage.cpp:
     8        (QWebPage::userAgentForUrl):
     9
    1102010-03-29  Simon Hausmann  <simon.hausmann@nokia.com>
    211
Note: See TracChangeset for help on using the changeset viewer.