diff options
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_) |