mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug #260837 --> RSS feeds using SSL are erroneously reported as invalid
Support http and https URLS for RSS. Effects Thunderbird only. sr=bienvenu
This commit is contained in:
parent
fa8a4835aa
commit
3388ce9f3a
@ -77,7 +77,7 @@ Feed.prototype.download = function(parseItems, aCallback) {
|
||||
var uri = Components.classes["@mozilla.org/network/standard-url;1"].
|
||||
createInstance(Components.interfaces.nsIURI);
|
||||
uri.spec = this.url;
|
||||
if (!uri.schemeIs("http"))
|
||||
if (!(uri.schemeIs("http") || uri.schemeIs("https")))
|
||||
return this.onParseError(this); // simulate an invalid feed error
|
||||
|
||||
this.request = Components.classes["@mozilla.org/xmlextras/xmlhttprequest;1"]
|
||||
|
@ -160,7 +160,7 @@ function CanDropOnFolderTree(index, orientation)
|
||||
var url = sourceUri.split("\n")[0];
|
||||
uri.spec = url;
|
||||
|
||||
if (uri.schemeIs("http") && targetServer && targetServer.type == 'rss')
|
||||
if ( (uri.schemeIs("http") || uri.schemeIs("https")) && targetServer && targetServer.type == 'rss')
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -274,7 +274,7 @@ function DropOnFolderTree(row, orientation)
|
||||
var url = sourceUri.split("\n")[0];
|
||||
uri.spec = url;
|
||||
|
||||
if (uri.schemeIs("http") && targetServer && targetServer.type == 'rss')
|
||||
if ( (uri.schemeIs("http") || uri.schemeIs("https")) && targetServer && targetServer.type == 'rss')
|
||||
{
|
||||
var rssService = Components.classes["@mozilla.org/newsblog-feed-downloader;1"].getService().
|
||||
QueryInterface(Components.interfaces.nsINewsBlogFeedDownloader);
|
||||
|
Loading…
Reference in New Issue
Block a user