[Webkit-unassigned] [Bug 44265] [Qt] Ability to set custom userAgent for WebKit2/WebKit

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 5 07:12:30 PDT 2010


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


Kimmo Kinnunen <kimmo.t.kinnunen at nokia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kimmo.t.kinnunen at nokia.com




--- Comment #5 from Kimmo Kinnunen <kimmo.t.kinnunen at nokia.com>  2010-10-05 07:12:30 PST ---
(In reply to comment #4)
> (From update of attachment 69776 [details])
> Did you test if setting setCustomUserAgent(QString()) turns off the custom user agent?

It actually doesn't. That causes user agent to be just "Mozilla/5.0" instead of 
"Mozilla/5.0 (Macintosh; ..."

That's probably another bug where string constructed from a null QString gets converted to a empty string?

String WebPage::userAgent() const
{
    if (!m_customUserAgent.isNull())
        return m_customUserAgent;

-- 
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