mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 14:15:30 +00:00
Bug 266904. Discovered feeds aren't cleared on loads in background tabs (refresh or drag and drop). r=gavin
This commit is contained in:
parent
bf05506b89
commit
a150cf3b01
@ -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;
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user