more popup whitelisting changes

This commit is contained in:
hyatt@netscape.com 2007-08-21 21:58:56 -07:00
parent 9495d43f78
commit df3f0d08f2

View File

@ -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)