diff options
author | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-24 19:15:32 +0000 |
---|---|---|
committer | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-24 19:15:32 +0000 |
commit | dc033989801c1233e5488bbcfcd878dcb4fc3c1c (patch) | |
tree | 5a6bd50071b337bd553def9adb36a58359c4b43d /webkit/appcache/appcache_request_handler.cc | |
parent | 0956a677730969bcb31216147999bf66894eaa21 (diff) | |
download | chromium_src-dc033989801c1233e5488bbcfcd878dcb4fc3c1c.zip chromium_src-dc033989801c1233e5488bbcfcd878dcb4fc3c1c.tar.gz chromium_src-dc033989801c1233e5488bbcfcd878dcb4fc3c1c.tar.bz2 |
When an individual entry is lost from the appache's diskcache, attempts to load that resource will fallthru to the network instead of promptly failing. See bug 50657. This is just a first step, a repair step will follow on in a future change.
BUG=50657
TEST=none
Review URL: http://codereview.chromium.org/3187017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57217 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_request_handler.cc')
-rw-r--r-- | webkit/appcache/appcache_request_handler.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/webkit/appcache/appcache_request_handler.cc b/webkit/appcache/appcache_request_handler.cc index 432534b..79f8909 100644 --- a/webkit/appcache/appcache_request_handler.cc +++ b/webkit/appcache/appcache_request_handler.cc @@ -53,7 +53,8 @@ AppCacheURLRequestJob* AppCacheRequestHandler::MaybeLoadResource( // which will call thru to our interception layer again. // This time thru, we return NULL so the request hits the wire. if (job_) { - DCHECK(job_->is_delivering_network_response()); + DCHECK(job_->is_delivering_network_response() || + job_->cache_entry_not_found()); job_ = NULL; return NULL; } |