Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(297)

Unified Diff: content/browser/renderer_host/buffered_resource_handler.cc

Issue 10079012: Change resource handling policy to allow feed types to download so they can be handled by web inten… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/download/chrome_download_manager_delegate.cc ('k') | net/base/mime_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/buffered_resource_handler.cc
diff --git a/content/browser/renderer_host/buffered_resource_handler.cc b/content/browser/renderer_host/buffered_resource_handler.cc
index 3cfbbbab95f24c3ea06e0ef6bbe0c921a88d3d10..23e2e7b46f8b348107d6aaa2ff2a36f16899f8c5 100644
--- a/content/browser/renderer_host/buffered_resource_handler.cc
+++ b/content/browser/renderer_host/buffered_resource_handler.cc
@@ -184,19 +184,6 @@ bool BufferedResourceHandler::DelayResponse() {
response_->mime_type.assign(mime_type);
}
- if (mime_type == "application/rss+xml" ||
- mime_type == "application/atom+xml") {
- // Sad face. The server told us that they wanted us to treat the response
- // as RSS or Atom. Unfortunately, we don't have a built-in feed previewer
- // like other browsers. We can't just render the content as XML because
- // web sites let third parties inject arbitrary script into their RSS
- // feeds. That leaves us with little choice but to practically ignore the
- // response. In the future, when we have an RSS feed previewer, we can
- // remove this logic.
- mime_type.assign("text/plain");
- response_->mime_type.assign(mime_type);
- }
-
if (!not_modified_status && ShouldWaitForPlugins()) {
wait_for_plugins_ = true;
return true;
« no previous file with comments | « chrome/browser/download/chrome_download_manager_delegate.cc ('k') | net/base/mime_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698