Bug 566659 - Newly opened tabs do not appear in the TabCandy interface on Trunk

This commit is contained in:
Paul O’Shannessy 2010-05-18 14:00:54 -07:00
parent ca2edba74a
commit 396b6e1458

View File

@ -454,7 +454,7 @@ function Tabs() {
EVENTS_TO_WATCH.forEach(
function(eventType) {
tabbrowser.addEventListener(eventType, onEvent, true);
tabbrowser.tabContainer.addEventListener(eventType, onEvent, true);
});
this.addTab = function addTab(url) {
@ -473,7 +473,7 @@ function Tabs() {
function() {
EVENTS_TO_WATCH.forEach(
function(eventType) {
tabbrowser.removeEventListener(eventType, onEvent, true);
tabbrowser.tabContainer.removeEventListener(eventType, onEvent, true);
});
for (var i = 0; i < tabbrowser.tabContainer.itemCount; i++)
unloadBrowserTab(tabbrowser.tabContainer.getItemAtIndex(i));