rem: document.documentElement.addEventListener("keypress", onReturnHit, true); 
add: var introString = permissionsBundle.getString(permissionType + "permissionstext"); document.getElementById("permissionsText").textContent = introString;  document.title = permissionsBundle.getString(permissionType + "permissionstitle");  var dialogElement = document.getElementById("permissionsManager"); dialogElement.setAttribute("windowtype", "permissions-" + permissionType);  if (permissionManager) { handleHostInput(document.getElementById("url")); loadPermissions(); } else { btnDisable(true); document.getElementById("removeAllPermissions").disabled = true; document.getElementById("url").disabled = true; document.documentElement.getButton("accept").disabled = true; } 
context: function Startup() {  permissionManager = Components.classes["@mozilla.org/permissionmanager;1"]                                .getService(Components.interfaces.nsIPermissionManager);  permissionsTree = document.getElementById("permissionsTree");  popupStringBundle = document.getElementById("popupStringBundle");  sortAscending = (permissionsTree.getAttribute("sortAscending") == "true");  loadPermissions(permissions);  loadTree();  // window.arguments[0] contains the host to prefill     if (window.arguments[0] != "") {    // fill textbox to unblock/add to whitelist    var prefill = window.arguments[0];    if (prefill.indexOf("www.") == 0)       prefill = prefill.slice(4);    document.getElementById("addSiteBox").value = prefill;  }  document.documentElement.addEventListener("keypress", onReturnHit, true);}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/d31df1a4c164f0d9b15383a3387cc1edfb20650b/permissionsManager.js/buggy/xpfe/components/permissions/content/permissionsManager.js