This commit is contained in:
gorhill 2015-07-09 12:52:56 -04:00
parent 53aa705453
commit bd43babf75
1 changed files with 5 additions and 1 deletions

View File

@ -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);