зеркало из https://github.com/mozilla/pjs.git
fix crash reading rss feeds, sr=mscott 328219, problem exposed by some http changes today;
This commit is contained in:
Родитель
dda56e7625
Коммит
663dd3003e
|
@ -67,7 +67,7 @@ var FeedCache =
|
|||
normalizeHost: function (aUrl)
|
||||
{
|
||||
var ioService = Components.classes["@mozilla.org/network/io-service;1"].
|
||||
createInstance(Components.interfaces.nsIIOService);
|
||||
getService(Components.interfaces.nsIIOService);
|
||||
var normalizedUrl = ioService.newURI(aUrl, null, null);
|
||||
normalizedUrl.host = normalizedUrl.host.toLowerCase();
|
||||
return normalizedUrl.spec;
|
||||
|
|
Загрузка…
Ссылка в новой задаче