Changes following review

This commit is contained in:
AlexVallat 2015-03-31 12:03:35 +01:00
parent ae310df6dd
commit 6c8b2a1b61
2 changed files with 2 additions and 4 deletions

View File

@ -323,7 +323,7 @@ const LocationChangeListener = function(docShell) {
this.docShell.addProgressListener(this, Ci.nsIWebProgress.NOTIFY_LOCATION);
}
}
}
};
LocationChangeListener.prototype.QueryInterface = XPCOMUtils.generateQI(["nsIWebProgressListener", "nsISupportsWeakReference"]);

View File

@ -328,7 +328,6 @@ var tabWatcher = {
onTabSelect: function({target}) {
vAPI.setIcon(vAPI.tabs.getTabId(target), getOwnerWindow(target));
return;
},
};
@ -408,7 +407,6 @@ vAPI.tabs.registerListeners = function() {
tabContainer = tabBrowser.deck;
} else if ( tabBrowser.tabContainer ) {
tabContainer = tabBrowser.tabContainer;
tabBrowser.removeTabsProgressListener(tabWatcher);
}
tabContainer.removeEventListener('TabClose', tabWatcher.onTabClose);
@ -1348,7 +1346,7 @@ vAPI.net.registerListeners = function() {
tabId: tabId,
url: details.url,
});
}
};
vAPI.messaging.globalMessageManager.addMessageListener(
locationChangedListenerMessageName,