Bug 728096 Patch for bug 684805 forgot to make background tabs inactive r+a=IanN
authorNeil Rashbrook <neil@parkwaycc.co.uk>
Fri, 17 Feb 2012 22:29:59 +0000
changeset 10184 7cd8e7033083411b811fc3336d075e4be40e5d00
parent 10181 2c181a24360fa42c93eae88012d4b2eea537bcca
child 10185 0921365622899470bae1ee2b33f05d632830598b
push idunknown
push userunknown
push dateunknown
bugs728096, 684805
Bug 728096 Patch for bug 684805 forgot to make background tabs inactive r+a=IanN
suite/browser/tabbrowser.xml
--- a/suite/browser/tabbrowser.xml
+++ b/suite/browser/tabbrowser.xml
@@ -1002,16 +1002,17 @@
             // Transfer the dropped link handler to the new browser.
             // Note: closing the current tab sets mCurrentBrowser to null
             //       so we use mCurrentTab.linkedBrowser instead.
             newBrowser.droppedLinkHandler = this.mCurrentTab.linkedBrowser.droppedLinkHandler;
             newBrowser.showWindowResizer = this.mCurrentTab.linkedBrowser.showWindowResizer;
             newBrowser.docShellIsActive = this.mCurrentTab.linkedBrowser.docShellIsActive;
             if (this.mCurrentBrowser) {
               this.mCurrentBrowser.droppedLinkHandler = null;
+              this.mCurrentBrowser.docShellIsActive = false;
               this.mCurrentBrowser.setAttribute("type", "content-targetable");
             }
 
             newBrowser.setAttribute("type", "content-primary");
             this.mCurrentBrowser = newBrowser;
             this.mCurrentTab = this.selectedTab;
             this.mCurrentTab.removeAttribute("unread");
             var tabListener = this.mTabListeners[this.tabContainer.selectedIndex];