[haiku-webkit-commits] r568 - webkit/trunk/WebKit/haiku/WebCoreSupport

  • From: noreply@xxxxxxxxxxxx
  • To: haiku-webkit-commits@xxxxxxxxxxxxx
  • Date: Thu, 30 Dec 2010 08:28:04 +0100 (CET)

Author: leavengood
Date: Thu Dec 30 08:28:03 2010
New Revision: 568
URL: http://webpositive.haiku-os.org/changeset/568

Log:
Open the search in a new window and remove the encoding parameters which seem
to make Google think Web+ is Safari (though our User Agent string doesn't help
either.)

Modified:
   webkit/trunk/WebKit/haiku/WebCoreSupport/ContextMenuClientHaiku.cpp

Modified: webkit/trunk/WebKit/haiku/WebCoreSupport/ContextMenuClientHaiku.cpp
==============================================================================
--- webkit/trunk/WebKit/haiku/WebCoreSupport/ContextMenuClientHaiku.cpp Thu Dec 
30 08:11:19 2010        (r567)
+++ webkit/trunk/WebKit/haiku/WebCoreSupport/ContextMenuClientHaiku.cpp Thu Dec 
30 08:28:03 2010        (r568)
@@ -81,11 +81,10 @@
     
     String url("http://www.google.com/search?q=";);
     url.append(encoded);
-    url.append("&ie=UTF-8&oe=UTF-8");
 
     ResourceRequest request = ResourceRequest(url);
     if (Page* page = frame->page())
-        page->mainFrame()->loader()->urlSelected(request, String(), 0, false, 
false, true, SendReferrer);
+        page->mainFrame()->loader()->urlSelected(request, String("_blank"), 0, 
false, false, true, SendReferrer);
 }
 
 void ContextMenuClientHaiku::lookUpInDictionary(Frame*)

Other related posts:

  • » [haiku-webkit-commits] r568 - webkit/trunk/WebKit/haiku/WebCoreSupport - noreply