OSDN Git Service

Fix two SIGSEGV bugs in request interception.
authorJeff Sharkey <jsharkey@android.com>
Fri, 17 Dec 2010 04:31:13 +0000 (20:31 -0800)
committerJeff Sharkey <jsharkey@android.com>
Fri, 17 Dec 2010 04:32:05 +0000 (20:32 -0800)
commit4cb3633ed73429b0e553ce48d94911f61dd6e769
tree6df09931169c4439ac4269f43c501b4fbbbbd338
parent27f8b0be5e91afbcd668785adb636b43f27cc9f7
Fix two SIGSEGV bugs in request interception.

When intercepting requests, properly ReleaseStringUTFChars for mimeType
and encoding after bringing over from Java.  Also, when finishing an
intercepted request that failed, construct a valid WebResponse.

Change-Id: I2990df2108a8fdf45c103512a8b9a30f4d6992ce
WebKit/android/WebCoreSupport/UrlInterceptResponse.cpp
WebKit/android/WebCoreSupport/WebRequest.cpp