Don't scroll to newly opened hidden tab #604

This commit is contained in:
YUKI Hiroshi 2016-02-22 12:03:36 +09:00
parent 9c3221b722
commit bd3f2969a7

View File

@ -3350,7 +3350,7 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
scrollToNewTab : function TSTBrowser_scrollToNewTab(aTab)
{
if (!aTab.parentNode) // do nothing for closed tab!
if (!aTab.parentNode || aTab.getAttribute('hidden') == 'true')
return;
if (this.scrollToNewTabMode > 0)