From 4ff670d62526d52af60644a8702fce2bc647738c Mon Sep 17 00:00:00 2001 From: "hyatt@netscape.com" Date: Tue, 21 Aug 2007 21:58:56 -0700 Subject: [PATCH] more popup whitelisting changes --- browser/base/content/tabbrowser.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml index eddeba0cee7..382e3a95ac4 100644 --- a/browser/base/content/tabbrowser.xml +++ b/browser/base/content/tabbrowser.xml @@ -383,10 +383,18 @@ if (this.mCurrentBrowser) this.mCurrentBrowser.setAttribute("type", "content"); + var updatePageReport = false; + if ((this.mCurrentBrowser.pageReport && !newBrowser.pageReport) || + (!this.mCurrentBrowser.pageReport && newBrowser.pageReport)) + updatePageReport = true; + newBrowser.setAttribute("type", "content-primary"); this.mCurrentBrowser = newBrowser; this.mCurrentTab = this.selectedTab; + if (updatePageReport) + this.mCurrentBrowser.updatePageReport(); + // Update the URL bar. var loc = this.mCurrentBrowser.currentURI; if (!loc)