diff options
author | jennb@chromium.org <jennb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-24 17:52:38 +0000 |
---|---|---|
committer | jennb@chromium.org <jennb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-24 17:52:38 +0000 |
commit | eca7ebdf0cc1dea9e29a4a755391fcdc63635f8d (patch) | |
tree | 84e40587e4d0b830e1b0e77761eefc5e0f92400e /webkit/appcache | |
parent | dfc127009271a718b5dde4569732018a207be73a (diff) | |
download | chromium_src-eca7ebdf0cc1dea9e29a4a755391fcdc63635f8d.zip chromium_src-eca7ebdf0cc1dea9e29a4a755391fcdc63635f8d.tar.gz chromium_src-eca7ebdf0cc1dea9e29a4a755391fcdc63635f8d.tar.bz2 |
Remove reference fragments from URL before passing to appcache for use as an appcache entry URL.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/431022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32937 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache')
-rw-r--r-- | webkit/appcache/web_application_cache_host_impl.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/webkit/appcache/web_application_cache_host_impl.cc b/webkit/appcache/web_application_cache_host_impl.cc index ed0257f..0d09cde 100644 --- a/webkit/appcache/web_application_cache_host_impl.cc +++ b/webkit/appcache/web_application_cache_host_impl.cc @@ -140,6 +140,11 @@ void WebApplicationCacheHostImpl::didReceiveResponseForMainResource( const WebURLResponse& response) { document_response_ = response; document_url_ = document_response_.url(); + if (document_url_.has_ref()) { + GURL::Replacements replacements; + replacements.ClearRef(); + document_url_ = document_url_.ReplaceComponents(replacements); + } is_scheme_supported_ = IsSchemeSupported(document_url_); if ((document_response_.appCacheID() != kNoCacheId) || !is_scheme_supported_ || !is_get_method_) |