diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index 99d3b233bd61..ae8b63bd6af9 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -498,9 +498,7 @@ function ctrlNumberTabSelection(event) return; var index = event.charCode - 49; - if (index == -1) - index = 9; - if (index < 0 || index > 9) + if (index < 0 || index > 8) return; if (index >= gBrowser.mTabContainer.childNodes.length)