OSDN Git Service

Fix CacheManager to correctly write CacheFiles to disk.
authorBen Murdoch <benm@google.com>
Tue, 15 Nov 2011 15:26:37 +0000 (15:26 +0000)
committerBen Murdoch <benm@google.com>
Tue, 15 Nov 2011 16:08:47 +0000 (16:08 +0000)
commit8d55fa6a7b44dd646774f089c2b88697d9d56096
tree8bc2f6d46299bee1c9434ad58a9e6484d0c66f85
parent61a908361c8a96eeb70afdb5430e89845edb2bdd
Fix CacheManager to correctly write CacheFiles to disk.

There are two problems with the CacheManager -
1. Need to null terminate the file path used for the cache file on
disk.
2. A race condition between starting the background task to write
the file and updating internal state variables.

These were causing a CTS test to fail.

Bug: 5619303
Change-Id: I61f06d50b7ef560ede2f1141fc51d92255d4efbd
Source/WebKit/android/WebCoreSupport/CacheResult.cpp
Source/WebKit/android/jni/CacheManager.cpp