OSDN Git Service

AI 145241: Automated g4 rollback of changelist 144888.
authorGrace Kloba <>
Thu, 9 Apr 2009 01:57:56 +0000 (18:57 -0700)
committerThe Android Open Source Project <initial-contribution@android.com>
Thu, 9 Apr 2009 01:57:56 +0000 (18:57 -0700)
  *** Reason for rollback ***
  Browser home page won't load.
  *** Original change description ***
  Given a url from java, percent encode the url to maintain any encoding.
  This fixes the loadData call when the data has non-ascii values.

Automated import of CL 145241

WebKit/android/jni/WebCoreFrameBridge.cpp

index 3eeeb7f..91103fb 100644 (file)
@@ -789,8 +789,7 @@ static void LoadUrl(JNIEnv *env, jobject obj, jstring url)
     WebCore::Frame* pFrame = GET_NATIVE_FRAME(env, obj);
     LOG_ASSERT(pFrame, "nativeLoadUrl must take a valid frame pointer!");
 
-    WebCore::String webcoreUrl =
-            WebCore::encodeWithURLEscapeSequences(to_string(env, url));
+    WebCore::String webcoreUrl = to_string(env, url);
     WebCore::ResourceRequest request(webcoreUrl);
     LOGV("LoadUrl %s", webcoreUrl.latin1().data());
     pFrame->loader()->load(request, false);