rem: els[i].setAttribute("mode", "icons"); els[i].setAttribute("iconsize", "small"); 
add:   if (gToolbarMode != "text") { els[i].setAttribute("mode", "icons"); els[i].setAttribute("iconsize", "small"); } 
context:   showXULChrome: function(aTag, aShow)  {    var XULNS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";    var els = document.getElementsByTagNameNS(XULNS, aTag);        var i;    for (i = 0; i < els.length; ++i) {      // XXX don't interfere with previously collapsed toolbars      if (els[i].getAttribute("fullscreentoolbar") == "true") {        if (!aShow) {          gToolbarMode = els[i].getAttribute("mode");          gIconSize = els[i].getAttribute("iconsize");          els[i].setAttribute("mode", "icons");          els[i].setAttribute("iconsize", "small");        }        else {          els[i].setAttribute("mode", gToolbarMode);          els[i].setAttribute("iconsize", gIconSize);        }      } else {        // use moz-collapsed so it doesn't persist hidden/collapsed,        // so that new windows don't have missing toolbars        if (aShow)          els[i].removeAttribute("moz-collapsed");        else          els[i].setAttribute("moz-collapsed", "true");      }    }        var controls = document.getElementsByAttribute("fullscreencontrol", "true");    for (i = 0; i < controls.length; ++i)      controls[i].hidden = aShow;  }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/f508149cb8b9aa4f730d8ac1689000e4bfa74072/browser.js/buggy/browser/base/content/browser.js