Changeset 97154 in webkit


Ignore:
Timestamp:
Oct 11, 2011 9:13:11 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

[Qt] WebProcess using proxy settings for localhost as well
https://bugs.webkit.org/show_bug.cgi?id=69611

Patch by Gopal Raghavan <gopal.1.raghavan@nokia.com> on 2011-10-11
Reviewed by Chang Shu.

Implemented checks in queryProxy to return QNetworkProxy::NoProxy for localhost and 127.0.0.1

  • WebProcess/qt/WebProcessMainQt.cpp:

(WebKit::EnvHttpProxyFactory::queryProxy):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r97139 r97154  
     12011-10-11  Gopal Raghavan  <gopal.1.raghavan@nokia.com>
     2
     3        [Qt] WebProcess using proxy settings for localhost as well
     4        https://bugs.webkit.org/show_bug.cgi?id=69611
     5
     6        Reviewed by Chang Shu.
     7
     8        Implemented checks in queryProxy to return QNetworkProxy::NoProxy for localhost and 127.0.0.1
     9
     10        * WebProcess/qt/WebProcessMainQt.cpp:
     11        (WebKit::EnvHttpProxyFactory::queryProxy):
     12
    1132011-10-11  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
    214
  • trunk/Source/WebKit2/WebProcess/qt/WebProcessMainQt.cpp

    r96417 r97154  
    105105{
    106106    QString protocol = query.protocolTag().toLower();
    107     if (protocol == QLatin1String("http"))
     107    bool localHost = false;
     108
     109    if (!query.peerHostName().compare(QLatin1String("localhost"), Qt::CaseInsensitive) || !query.peerHostName().compare(QLatin1String("127.0.0.1"), Qt::CaseInsensitive))
     110        localHost = true;
     111    if (protocol == QLatin1String("http") && !localHost)
    108112        return m_httpProxy;
    109     else if (protocol == QLatin1String("https"))
     113    if (protocol == QLatin1String("https") && !localHost)
    110114        return m_httpsProxy;
    111115
Note: See TracChangeset for help on using the changeset viewer.