Bug 266904. Discovered feeds aren't cleared on loads in background tabs (refresh or drag and drop). r=gavin

This commit is contained in:
sayrer%gmail.com 2006-12-12 17:27:34 +00:00
parent bf05506b89
commit a150cf3b01

View File

@ -5363,6 +5363,13 @@ var FeedHandler = {
gBrowser.addEventListener("DOMLinkAdded",
function (event) { FeedHandler.onLinkAdded(event); },
true);
gBrowser.addEventListener("pagehide", FeedHandler.onPageHide, true);
},
onPageHide: function(event) {
var theBrowser = gBrowser.getBrowserForDocument(event.target);
if (theBrowser)
theBrowser.feeds = null;
},
/**