summaryrefslogtreecommitdiffstats
path: root/webkit/appcache
diff options
context:
space:
mode:
authormichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-20 01:06:39 +0000
committermichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-20 01:06:39 +0000
commit3eda65dc14e47098467254c136b6fb7addbf6b3e (patch)
tree08dae18f27775901698eecc879218e544181e577 /webkit/appcache
parent60e399f90d2f5d19ced09cbd3adb3a295ebabf9f (diff)
downloadchromium_src-3eda65dc14e47098467254c136b6fb7addbf6b3e.zip
chromium_src-3eda65dc14e47098467254c136b6fb7addbf6b3e.tar.gz
chromium_src-3eda65dc14e47098467254c136b6fb7addbf6b3e.tar.bz2
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
Diffstat (limited to 'webkit/appcache')
-rw-r--r--webkit/appcache/web_application_cache_host_impl.cc4
1 files changed, 3 insertions, 1 deletions
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());
+ }
}
}