rem: document.getElementById('ifl_expires').setAttribute("value",GetExpiresString(params.GetInt(nsICookieAcceptDialog.COOKIE_EXPIRES))); document.getElementById('ifl_isDomain').setAttribute("value", params.GetInt(nsICookieAcceptDialog.COOKIE_IS_DOMAIN) ? cookieBundle.getString("domainColon") : cookieBundle.getString("hostColon") );   params.SetInt(eAcceptCookie, 0);  
add: document.getElementById('ifl_expires').setAttribute("value",GetExpiresString(cookie.expires)); document.getElementById('ifl_isDomain').setAttribute("value", cookie.isDomain ? cookieBundle.getString("domainColon") : cookieBundle.getString("hostColon") ); }  params.SetInt(nsICookieAcceptDialog.ACCEPT_COOKIE, 0); 
context: function onload(){  var dialog = document.documentElement;  dialog.getButton("accept").label = dialog.getAttribute("acceptLabel");  dialog.getButton("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');  }  if (!hideDetails) {    hideDetails = cookieBundle.getString('hideDetails');  }  if (document.getElementById('infobox').hidden) {    document.getElementById('disclosureButton').setAttribute("label",showDetails);  } else {    document.getElementById('disclosureButton').setAttribute("label",hideDetails);  }  if ("arguments" in window && window.arguments.length >= 1 && window.arguments[0]) {    try {      params = window.arguments[0].QueryInterface(nsIDialogParamBlock);      var messageText = params.GetString(nsICookieAcceptDialog.MESSAGETEXT);      var messageParent = document.getElementById("info.box");      var messageParagraphs = messageText.split("\n");      for (var i = 0; i < messageParagraphs.length; i++) {        var descriptionNode = document.createElement("description");        var text = document.createTextNode(messageParagraphs[i]);        descriptionNode.appendChild(text);        messageParent.appendChild(descriptionNode);      }      document.getElementById('persistDomainAcceptance').checked = params.GetInt(nsICookieAcceptDialog.REMEMBER_DECISION) > 0;      document.getElementById('ifl_name').setAttribute("value",params.GetString(nsICookieAcceptDialog.COOKIE_NAME));      document.getElementById('ifl_value').setAttribute("value",params.GetString(nsICookieAcceptDialog.COOKIE_VALUE));      document.getElementById('ifl_host').setAttribute("value",params.GetString(nsICookieAcceptDialog.COOKIE_HOST));      document.getElementById('ifl_path').setAttribute("value",params.GetString(nsICookieAcceptDialog.COOKIE_PATH));      document.getElementById('ifl_isSecure').setAttribute("value",                                                           params.GetInt(nsICookieAcceptDialog.COOKIE_IS_SECURE) ?                                                                  cookieBundle.getString("yes") : cookieBundle.getString("no")                                                          );      document.getElementById('ifl_expires').setAttribute("value",GetExpiresString(params.GetInt(nsICookieAcceptDialog.COOKIE_EXPIRES)));      document.getElementById('ifl_isDomain').setAttribute("value",                                                           params.GetInt(nsICookieAcceptDialog.COOKIE_IS_DOMAIN) ?                                                                  cookieBundle.getString("domainColon") : cookieBundle.getString("hostColon")                                                          );      // set default result to cancelled      params.SetInt(eAcceptCookie, 0);     } catch (e) {    }  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/06b309aa3863b5e73c96b772349bc823db696969/cookieAcceptDialog.js/buggy/extensions/cookie/resources/content/cookieAcceptDialog.js