From bd43babf757235eb571ab4c6a1c912e8725d58d5 Mon Sep 17 00:00:00 2001 From: gorhill Date: Thu, 9 Jul 2015 12:52:56 -0400 Subject: [PATCH] this fixes #470 --- platform/firefox/vapi-background.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index 59dd237b6..8ea2036b8 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -781,7 +781,11 @@ vAPI.tabs.select = function(tab) { return; } - var tabBrowser = getTabBrowser(getOwnerWindow(tab)); + // https://github.com/gorhill/uBlock/issues/470 + var win = getOwnerWindow(tab); + win.focus(); + + var tabBrowser = getTabBrowser(win); if ( vAPI.fennec ) { tabBrowser.selectTab(tab);