rem: repositionDialog(); 
context: function addNewToolbar(){  var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]                                .getService(Components.interfaces.nsIPromptService);  var stringBundle = document.getElementById("stringBundle");  var message = stringBundle.getString("enterToolbarName");  var title = stringBundle.getString("enterToolbarTitle");  var name = {};  while (true) {    if (!promptService.prompt(window, title, message, name, null, {}))      return;        if (!name.value) {      message = stringBundle.getFormattedString("enterToolbarBlank", [name.value]);      continue;    }    var dupeFound = false;     // Check for an existing toolbar with the same display name    for (i = 0; i < gToolbox.childNodes.length; ++i) {      var toolbar = gToolbox.childNodes[i];      var toolbarName = toolbar.getAttribute("toolbarname");      if (toolbarName == name.value &&          toolbar.getAttribute("type") != "menubar" &&          toolbar.nodeName == 'toolbar') {        dupeFound = true;        break;      }    }    if (!dupeFound)      break;    message = stringBundle.getFormattedString("enterToolbarDup", [name.value]);  }      gToolbox.appendCustomToolbar(name.value, "");    repositionDialog();  gToolboxChanged = true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a32f4e2afd6a61fb4805073d7ead7ee533f20459/customizeToolbar.js/clean/toolkit/content/customizeToolbar.js