Author: nextgens
Date: 2008-09-05 18:58:41 +0000 (Fri, 05 Sep 2008)
New Revision: 22475

Modified:
   trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java
Log:
Fproxy: whitelist chrome, it doesn't behave like other webkit powered browsers

Modified: trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java  2008-09-05 
18:53:39 UTC (rev 22474)
+++ trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java  2008-09-05 
18:58:41 UTC (rev 22475)
@@ -569,7 +569,8 @@

         HTMLNode bookmarkBoxContent = bookmarkBox.addChild("div", "class", 
"infobox-content");
         HTMLNode bookmarksList = bookmarkBoxContent.addChild("ul", "id", 
"bookmarks");
-        addCategoryToList(BookmarkManager.MAIN_CATEGORY, bookmarksList, 
useragent != null && useragent.toLowerCase().indexOf("khtml") >= 0);
+       String userAgent = useragent.toLowerCase();
+        addCategoryToList(BookmarkManager.MAIN_CATEGORY, bookmarksList, 
useragent != null && userAgent.contains("khtml") && 
!userAgent.contains("chrome"));

         // Fetch-a-key box
         HTMLNode fetchKeyBox = 
contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-normal", 
l10n("fetchKeyLabel")));


Reply via email to