[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/khtml/ecma
From:       Stephan Kulow <coolo () kde ! org>
Date:       2004-10-30 9:43:17
Message-ID: 20041030094317.9A36D16CE3 () office ! kde ! org
[Download RAW message or body]

CVS commit by coolo: 

fixing navigator.appName for local files 


  M +4 -1      kjs_navigator.cpp   1.76


--- kdelibs/khtml/ecma/kjs_navigator.cpp  #1.75:1.76
@@ -170,5 +170,8 @@ Value Navigator::getValueProperty(ExecSt
 {
   KURL url = m_part->url();
-  QString userAgent = KProtocolManager::userAgentForHost(url.host());
+  QString userAgent = url.host();
+  if (userAgent.isEmpty())
+     userAgent = "localhost";
+  userAgent = KProtocolManager::userAgentForHost(userAgent);
   switch (token) {
   case AppCodeName:


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic