diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml index c5c5c386ed4..8a079b58b65 100644 --- a/browser/base/content/tabbrowser.xml +++ b/browser/base/content/tabbrowser.xml @@ -2767,18 +2767,13 @@ this.setAttribute("closebuttons", "activetab"); break; case 1: - try { - var width = this.firstChild.boxObject.width; - // 0 width is an invalid value and indicates - // an item without display, so ignore. - if (width > this.mTabClipWidth || width == 0) - this.setAttribute("closebuttons", "alltabs"); - else - this.setAttribute("closebuttons", "activetab"); - } - catch (e) { - // XXXzeniko what error are we catching here? - } + var width = this.firstChild.boxObject.width; + // 0 width is an invalid value and indicates + // an item without display, so ignore. + if (width > this.mTabClipWidth || width == 0) + this.setAttribute("closebuttons", "alltabs"); + else + this.setAttribute("closebuttons", "activetab"); break; case 2: case 3: