add:  var toolbox = document.getElementById("navigator-toolbox"); if (!aShow && gToolbarMode != "text") { toolbox.setAttribute("mode", "icons"); toolbox.setAttribute("iconsize", "small"); } else if (aShow) { toolbox.setAttribute("mode", gToolbarMode); toolbox.setAttribute("iconsize", gIconSize); }  
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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/116a6804980193e08b6eec3e00b0ad5fed521c21/browser.js/clean/browser/base/content/browser.js