mirror of https://github.com/gorhill/uBlock.git
this fixes #470
This commit is contained in:
parent
53aa705453
commit
bd43babf75
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue