From 8ec00da02a1a4f9687d6133420dd4a64ca389f3e Mon Sep 17 00:00:00 2001 From: "myk@mozilla.org" Date: Wed, 2 Jan 2008 13:14:55 -0800 Subject: [PATCH] bug 407116: prevent RSS icon from disappearing when page contains subframes that don't reference RSS feeds; r=mconnor --- toolkit/content/widgets/browser.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/toolkit/content/widgets/browser.xml b/toolkit/content/widgets/browser.xml index e09a8d68b47..03819e80510 100644 --- a/toolkit/content/widgets/browser.xml +++ b/toolkit/content/widgets/browser.xml @@ -457,8 +457,10 @@ this.pageReport = null; this.updatePageReport(); } - if (this.feeds) - this.feeds = null; + // Delete the feeds cache if we're hiding the topmost page + // (as opposed to one of its iframes). + if (this.feeds && event.target == this.contentDocument) + this.feeds = null; if (!this.docShell || !this.fastFind) return; var tabBrowser = this.getTabBrowser();