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)