diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index 227d68229..0b1ac9608 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -926,7 +926,7 @@ var tabWatcher = (function() { if ( tabBrowser === null ) { return null; } - return browserFromTarget(getTabBrowser(win).selectedTab); + return browserFromTarget(tabBrowser.selectedTab); }; var removeBrowserEntry = function(tabId, browser) {