Bug 341407. After subscribe to feed operation, rss icon is broken until web page is refreshed. Second patch, fix call site. Patch by Ben Goodger <bugs@bengoodger.com>. r=darin, a=mconnor

This commit is contained in:
sayrer%gmail.com 2006-07-27 06:26:56 +00:00
Родитель eb63cd5609
Коммит baa1adde55
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -499,10 +499,14 @@ FeedWriter.prototype = {
handler.getHandlerURI(this._window.location.href);
}
else {
var request =
this._window.QueryInterface(Ci.nsIInterfaceRequestor).
getInterface(Ci.nsIWebNavigation).
QueryInterface(Ci.nsIDocShell).currentDocumentChannel;
var feedService =
Cc["@mozilla.org/browser/feeds/result-service;1"].
getService(Ci.nsIFeedResultService);
feedService.addToClientReader(this._window.location.href);
feedService.addToClientReader(request, this._window.location.href);
}
},