From 3eda65dc14e47098467254c136b6fb7addbf6b3e Mon Sep 17 00:00:00 2001 From: "michaeln@google.com" Date: Wed, 20 Apr 2011 01:06:39 +0000 Subject: Eliminiate an IPC per frame navigation in cases where it's not needed (most cases). BUG=none TEST=existing tests Review URL: http://codereview.chromium.org/6877058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82205 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/appcache/web_application_cache_host_impl.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webkit/appcache/web_application_cache_host_impl.cc b/webkit/appcache/web_application_cache_host_impl.cc index 4fbcc21..f6e6336 100644 --- a/webkit/appcache/web_application_cache_host_impl.cc +++ b/webkit/appcache/web_application_cache_host_impl.cc @@ -173,8 +173,10 @@ void WebApplicationCacheHostImpl::willStartMainResourceRequest( spawning_frame = frame; WebApplicationCacheHostImpl* spawning_host = FromFrame(spawning_frame); - if (spawning_host && (spawning_host != this)) + if (spawning_host && (spawning_host != this) && + (spawning_host->status_ != UNCACHED)) { backend_->SetSpawningHostId(host_id_, spawning_host->host_id()); + } } } -- cgit v1.1