rem: this.setToolbarButtonMode(els[i], aShow ? "" : "small"); 
add: 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); } 
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") {        this.setToolbarButtonMode(els[i], aShow ? "" : "small");      } 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/e29a166f4bdc95ddfc8bba705820c4c1f1cbe90c/browser.js/buggy/browser/base/content/browser.js