| Index: content/child/indexed_db/webidbcursor_impl.cc
|
| diff --git a/content/child/indexed_db/webidbcursor_impl.cc b/content/child/indexed_db/webidbcursor_impl.cc
|
| index 36426352a0705396bb6068fd83b1a8fd9a1a7298..50f7ebf0409b640cb0732d79064fefc5dfb09063 100644
|
| --- a/content/child/indexed_db/webidbcursor_impl.cc
|
| +++ b/content/child/indexed_db/webidbcursor_impl.cc
|
| @@ -161,6 +161,14 @@ void WebIDBCursorImpl::CachedContinue(WebIDBCallbacks* callbacks) {
|
|
|
| ++pending_onsuccess_callbacks_;
|
|
|
| + if (!continue_count_) {
|
| + // The cache was invalidated by a call to ResetPrefetchCache()
|
| + // after the RequestIDBCursorPrefetch() was made. Now that the
|
| + // initiating continue() call has been satisfied, discard
|
| + // the rest of the cache.
|
| + ResetPrefetchCache();
|
| + }
|
| +
|
| callbacks->onSuccess(WebIDBKeyBuilder::Build(key),
|
| WebIDBKeyBuilder::Build(primary_key),
|
| value);
|
|
|