rem: var savedIconSize = toolbox.getAttribute("saved-iconsize"); 
add: savedIconSize = toolbox.getAttribute("saved-iconsize"); 
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) {          var toolbarMode = els[i].getAttribute("mode");          var iconSize = els[i].getAttribute("iconsize");          var contextMenu = els[i].getAttribute("context");          if (toolbarMode != "text") {            els[i].setAttribute("saved-mode", toolbarMode);            els[i].setAttribute("saved-iconsize", iconSize);            els[i].setAttribute("mode", "icons");            els[i].setAttribute("iconsize", "small");          }          // XXX See bug 202978: we disable the context menu          // to prevent customization while in fullscreen, which          // causes menu breakage.          els[i].setAttribute("saved-context", contextMenu);          els[i].removeAttribute("context");        }        else {          if (els[i].hasAttribute("saved-mode")) {            var savedMode = els[i].getAttribute("saved-mode");            els[i].setAttribute("mode", savedMode);            els[i].removeAttribute("saved-mode");          }          if (els[i].hasAttribute("saved-iconsize")) {            var savedIconSize = els[i].getAttribute("saved-iconsize");            els[i].setAttribute("iconsize", savedIconSize);            els[i].removeAttribute("saved-iconsize");          }          // XXX see above.          if (els[i].hasAttribute("saved-context")) {            var savedContext = els[i].getAttribute("saved-context");            els[i].setAttribute("context", savedContext);            els[i].removeAttribute("saved-context");          }        }      } 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");      }    }#ifndef XP_MACOSX    var controls = document.getElementsByAttribute("fullscreencontrol", "true");    for (i = 0; i < controls.length; ++i)      controls[i].hidden = aShow;#endif    // XXXvladimir this was a fix for bug 174174, but I don't think it's necessary    // any more?    var toolbox = document.getElementById("navigator-toolbox");    if (!aShow) {      var toolboxMode = toolbox.getAttribute("mode");      var toolboxIconSize = toolbox.getAttribute("iconsize");      if (toolboxMode != "text") {        toolbox.setAttribute("saved-mode", toolboxMode);        toolbox.setAttribute("saved-iconsize", toolboxIconSize);        toolbox.setAttribute("mode", "icons");        toolbox.setAttribute("iconsize", "small");      }      else {        if (toolbox.hasAttribute("saved-mode")) {          var savedMode = toolbox.getAttribute("saved-mode");          toolbox.setAttribute("mode", savedMode);          toolbox.removeAttribute("saved-mode");        }        if (toolbox.hasAttribute("saved-iconsize")) {          var savedIconSize = toolbox.getAttribute("saved-iconsize");          toolbox.setAttribute("iconsize", savedIconSize);          toolbox.removeAttribute("saved-iconsize");        }      }    }  }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/ebb48b885f533849ecbd7d340806d70106ef71a3/browser.js/buggy/browser/base/content/browser.js