commit | 3ff67926e2b21c83b1bf7cd4d8531e3830bd9b4b | [log] [tgz] |
---|---|---|
author | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Fri Oct 12 23:40:05 2012 |
committer | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Fri Oct 12 23:40:05 2012 |
tree | 50c3d15f97127f4704a823c3e7eb43504aaceb49 | |
parent | dc726865640ac5e63a90dbdfebcb25b6762ca44e [diff] [blame] |
Don't use web intents for rss feeds. [email protected] BUG= Review URL: https://chromiumcodereview.appspot.com/11048039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161675 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/browser/renderer_host/buffered_resource_handler.cc b/content/browser/renderer_host/buffered_resource_handler.cc index 98aae337..816413a 100644 --- a/content/browser/renderer_host/buffered_resource_handler.cc +++ b/content/browser/renderer_host/buffered_resource_handler.cc
@@ -132,6 +132,12 @@ // treat the response as "text/plain". This is the most secure option. response_->head.mime_type.assign("text/plain"); } + + // Treat feed types as text/plain. + if (response_->head.mime_type == "application/rss+xml" || + response_->head.mime_type == "application/atom+xml") { + response_->head.mime_type.assign("text/plain"); + } } state_ = STATE_PROCESSING;