[Webkit-unassigned] [Bug 47903] [EFL] Sets default user agent

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 29 01:11:51 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=47903





--- Comment #14 from Gyuyoung Kim <gyuyoung.kim at samsung.com>  2010-10-29 01:11:49 PST ---

> 
> These are not the ones being used :-) They must be from somewhere else.

Do you mean the macros(QT_WEBKIT_VERSION, QT_WEBKIT_MAJOR_VERSION, QT_WEBKIT_MINOR_VERSION and so on) aren't used ? 


To my understanding, QtWebKit uses WEBKIT_MAJOR_VERSION and WEBKIT_MINOR_VERSION.


QString QWebPage::userAgentForUrl(const QUrl&) const
{
...
    secondPartTemp += QString::fromLatin1("AppleWebKit/");
    secondPartTemp += qWebKitVersion();
    secondPartTemp += QString::fromLatin1(" (KHTML, like Gecko) ");
...
}

QString qWebKitVersion()
{
    return QString("%1.%2").arg(WEBKIT_MAJOR_VERSION).arg(WEBKIT_MINOR_VERSION);
}

I can't find the macros definitions in QtWebKit. But, the macros are defined in configure.ac. Do you know where the macros are defined in Qt Port area ?

I need this patch for HTML5 Video. Because, youtube give different pages according to user agent.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list