diff --git a/mozilla/toolkit/components/feeds/src/FeedProcessor.js b/mozilla/toolkit/components/feeds/src/FeedProcessor.js
index 8df8eec3712..e23858550c0 100644
--- a/mozilla/toolkit/components/feeds/src/FeedProcessor.js
+++ b/mozilla/toolkit/components/feeds/src/FeedProcessor.js
@@ -1421,6 +1421,9 @@ FeedProcessor.prototype = {
// The XMLReader will throw sensible exceptions if these get called
// out of order.
onStartRequest: function FP_onStartRequest(request, context) {
+ var channel = request.QueryInterface(Ci.nsIChannel);
+ if (channel)
+ channel.contentType = "application/xml";
this._reader.onStartRequest(request, context);
},
diff --git a/mozilla/toolkit/components/places/tests/chrome/Makefile.in b/mozilla/toolkit/components/places/tests/chrome/Makefile.in
index 1b2a4585dfb..4c987aa4bdb 100644
--- a/mozilla/toolkit/components/places/tests/chrome/Makefile.in
+++ b/mozilla/toolkit/components/places/tests/chrome/Makefile.in
@@ -47,12 +47,15 @@ include $(topsrcdir)/config/rules.mk
_HTTP_FILES = \
sample_feed.atom \
bad_links.atom \
+ rss_as_html.rss \
+ rss_as_html.rss^headers^ \
$(NULL)
_CHROME_FILES = \
test_371798.xul \
test_342484.xul \
test_341972a.xul \
+ test_381357.xul \
$(NULL)
libs:: $(_HTTP_FILES)
diff --git a/mozilla/toolkit/components/places/tests/chrome/rss_as_html.rss b/mozilla/toolkit/components/places/tests/chrome/rss_as_html.rss
new file mode 100644
index 00000000000..e8230503533
--- /dev/null
+++ b/mozilla/toolkit/components/places/tests/chrome/rss_as_html.rss
@@ -0,0 +1,27 @@
+
+