[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/khtml/ecma
From: David Faure <faure () kde ! org>
Date: 2002-12-04 11:20:03
[Download RAW message or body]
CVS commit by faure:
Use localhost as hostname for the UA stuff, if URL is local
M +2 -1 kjs_proxy.cpp 1.90
--- kdelibs/khtml/ecma/kjs_proxy.cpp:1.89 Sun Dec 1 16:37:02 2002
@@ -338,7 +338,8 @@
void KJSProxyImpl::applyUserAgent()
{
assert( m_script );
- QString userAgent = KProtocolManager::userAgentForHost(m_part->url().host());
+ QString host = m_part->url().isLocalFile() ? "localhost" : m_part->url().host();
+ QString userAgent = KProtocolManager::userAgentForHost(host);
if (userAgent.find(QString::fromLatin1("Microsoft")) >= 0 ||
userAgent.find(QString::fromLatin1("MSIE")) >= 0)
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic