rem: messageText = cookieBundle.getFormattedString(messageFormat,[cookie.host,cookiesFromHost]); 
add: messageText = cookieBundle.getFormattedString(messageFormat,[hostname, cookiesFromHost]); 
context: function onload(){  doSetOKCancel(cookieAccept);  var dialog = document.documentElement;  document.getElementById("ok").label = dialog.getAttribute("acceptLabel");  document.getElementById("cancel").label = dialog.getAttribute("cancelLabel");  if (!gDateService) {    const nsScriptableDateFormat_CONTRACTID = "@mozilla.org/intl/scriptabledateformat;1";    const nsIScriptableDateFormat = Components.interfaces.nsIScriptableDateFormat;    gDateService = Components.classes[nsScriptableDateFormat_CONTRACTID]                             .getService(nsIScriptableDateFormat);  }  cookieBundle = document.getElementById("cookieBundle");  //cache strings  if (!showDetails) {    showDetails = cookieBundle.getString('showDetails');    showDetailsAccessKey = cookieBundle.getString('showDetailsAccessKey');  }  if (!hideDetails) {    hideDetails = cookieBundle.getString('hideDetails');    hideDetailsAccessKey = cookieBundle.getString('hideDetailsAccessKey');  }  if (document.getElementById('infobox').hidden) {    document.getElementById('disclosureButton').setAttribute("label",showDetails);    document.getElementById('disclosureButton').setAttribute("accesskey",showDetailsAccessKey);  } else {    document.getElementById('disclosureButton').setAttribute("label",hideDetails);    document.getElementById('disclosureButton').setAttribute("accesskey",hideDetailsAccessKey);  }  if ("arguments" in window && window.arguments.length >= 1 && window.arguments[0]) {    try {      params = window.arguments[0].QueryInterface(nsIDialogParamBlock);      var objects = params.objects;      var cookie = params.objects.queryElementAt(0,nsICookie);            var cookiesFromHost = params.GetInt(nsICookieAcceptDialog.COOKIESFROMHOST);      var messageFormat;      if (params.GetInt(nsICookieAcceptDialog.CHANGINGCOOKIE))        messageFormat = 'permissionToModifyCookie';      else if (cookiesFromHost > 1)        messageFormat = 'permissionToSetAnotherCookie';      else if (cookiesFromHost == 1)        messageFormat = 'permissionToSetSecondCookie';      else        messageFormat = 'permissionToSetACookie';      var hostname = params.GetString(nsICookieAcceptDialog.HOSTNAME);      var messageText;      if (cookie)        messageText = cookieBundle.getFormattedString(messageFormat,[cookie.host,cookiesFromHost]);      else        // No cookies means something went wrong. Bring up the dialog anyway        // to not make the mess worse.        messageText = cookieBundle.getFormattedString(messageFormat,["",cookiesFromHost]);      var messageParent = document.getElementById("dialogtextbox");      var messageParagraphs = messageText.split("\n");      // use value for the header, so it doesn't wrap.      var headerNode = document.getElementById("dialog-header");      headerNode.setAttribute("value",messageParagraphs[0]);      // use childnodes here, the tekst can wrap      for (var i = 1; i < messageParagraphs.length; i++) {        var descriptionNode = document.createElement("description");        text = document.createTextNode(messageParagraphs[i]);        descriptionNode.appendChild(text);        messageParent.appendChild(descriptionNode);      }      // Must we remember the decision?      params.SetInt(nsICookieAcceptDialog.REMEMBER_DECISION, document.getElementById('persistDomainAcceptance').checked);      if (cookie) {        document.getElementById('ifl_name').setAttribute("value",cookie.name);        document.getElementById('ifl_value').setAttribute("value",cookie.value);        document.getElementById('ifl_host').setAttribute("value",cookie.host);        document.getElementById('ifl_path').setAttribute("value",cookie.path);        document.getElementById('ifl_isSecure').setAttribute("value",                                                                 cookie.isSecure ?                                                                    cookieBundle.getString("yes") : cookieBundle.getString("no")                                                          );        document.getElementById('ifl_expires').setAttribute("value",GetExpiresString(cookie.expires));        document.getElementById('ifl_isDomain').setAttribute("value",                                                                 cookie.isDomain ?                                                                    cookieBundle.getString("domainColon") : cookieBundle.getString("hostColon")                                                            );      }      // set default result to not accept the cookie      params.SetInt(nsICookieAcceptDialog.ACCEPT_COOKIE, 0);    } catch (e) {    }  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/21e31387763b35e4efcc3468a419790167c15229/cookieAcceptDialog.js/buggy/toolkit/components/cookie/content/cookieAcceptDialog.js