rem: try { spring.setAttribute("height", currentRow.boxObject.height); } catch(ex) { } 
context: function buildPalette(paletteBox, toolbar, currentSet){  var currentRow = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",                                            "hbox");  currentRow.setAttribute("class", "paletteRow");  var rowSlot = 1;  var rowMax = 4;  // Add the toolbar separator first.  var node = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",                                      "toolbarseparator");  node.setAttribute("id", "separator");  createEnclosure(node, currentRow);  node = toolbar.palette.firstChild;  var isOnToolbar = false;  while (node) {    for (var i = 0; i < currentSet.length; ++i) {      if (currentSet[i] == node.id) {        isOnToolbar = true;        break;      }    }    if (isOnToolbar) {      node = node.nextSibling;      isOnToolbar = false;      continue;    }    var paletteItem = node.cloneNode(true);    cleanUpItemForAdding(paletteItem);    if (rowSlot == rowMax) {      // Append the old row.      paletteBox.appendChild(currentRow);      // Make a new row.      currentRow = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",                                            "hbox");      currentRow.setAttribute("class", "paletteRow");      rowSlot = 0;    }     rowSlot++;    createEnclosure(paletteItem, currentRow);    node = node.nextSibling;  }  if (currentRow) {     // Remaining flex    var remainingFlex = rowMax - rowSlot;    if (remainingFlex > 0) {      var spring = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",                                            "spacer");      spring.setAttribute("flex", remainingFlex);      try {        spring.setAttribute("height", currentRow.boxObject.height);      }      catch(ex) {      }      currentRow.appendChild(spring);    }    paletteBox.appendChild(currentRow);  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/025eced0266800a306685c679a62ace2d34d2f61/customizeToolbar.js/buggy/browser/base/content/customizeToolbar.js