add:  if (!name.value) { message = stringBundle.getFormattedString("enterToolbarBlank", [name.value]); continue; }  
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;          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") {        dupeFound = true;        break;      }    }              if (!dupeFound)      break;         message = stringBundle.getFormattedString("enterToolbarDup", [name.value]);        }      gToolbox.appendCustomToolbar(name.value, "");    repositionDialog();  gToolboxChanged = true;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/65e2af214eedcba9c158ccbca56df3572f32aab6/customizeToolbar.js/clean/toolkit/content/customizeToolbar.js