зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
eb63cd5609
Коммит
baa1adde55
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче