rem: element = document.getElementById("cookieviewer"); element.setAttribute("title", cookieBundle.getString("popupTitle")); 
add: document.title = cookieBundle.getString("popupTitle"); 
context: function Startup() {  // arguments passed to this routine:  //   cookieManager   //   cookieManagerFromIcon  //   imageManager   // xpconnect to cookiemanager/permissionmanager/promptservice/popupmanager interfaces  cookiemanager = Components.classes["@mozilla.org/cookiemanager;1"].getService();  cookiemanager = cookiemanager.QueryInterface(Components.interfaces.nsICookieManager);  permissionmanager = Components.classes["@mozilla.org/permissionmanager;1"].getService();  permissionmanager = permissionmanager.QueryInterface(Components.interfaces.nsIPermissionManager);  promptservice = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService();  promptservice = promptservice.QueryInterface(Components.interfaces.nsIPromptService);  popupmanager = Components.classes["@mozilla.org/PopupWindowManager;1"].getService();  popupmanager = popupmanager.QueryInterface(Components.interfaces.nsIPopupWindowManager);  // intialize gDateService  if (!gDateService) {    const nsScriptableDateFormat_CONTRACTID = "@mozilla.org/intl/scriptabledateformat;1";    const nsIScriptableDateFormat = Components.interfaces.nsIScriptableDateFormat;    gDateService = Components.classes[nsScriptableDateFormat_CONTRACTID]      .getService(nsIScriptableDateFormat);  }  // intialize string bundle  cookieBundle = document.getElementById("cookieBundle");  // label the close button  document.documentElement.getButton("accept").label = cookieBundle.getString("close");  // determine if labelling is for cookies or images  try {    var tabBox = document.getElementById("tabbox");    var element;    if (dialogType == cookieType) {      element = document.getElementById("cookiesTab");      tabBox.selectedTab = element;    } else if (dialogType == imageType) {      element = document.getElementById("cookieviewer");      element.setAttribute("title", cookieBundle.getString("imageTitle"));      element = document.getElementById("permissionsTab");      element.label = cookieBundle.getString("tabBannedImages");      tabBox.selectedTab = element;      element = document.getElementById("permissionsText");      element.value = cookieBundle.getString("textBannedImages");      // Hide a dummy vbox inside the real box      // If the actual box is hidden, the tabbox gets confused.      // The first tab now controls the second panel.      // Hiding the first tab doesn't help.      document.getElementById("dummyContainer").hidden = "true";      document.getElementById("cookiesTab").hidden = "true";      element = document.getElementById("btnSession");      element.hidden = "true";    } else {      element = document.getElementById("cookieviewer");      element.setAttribute("title", cookieBundle.getString("popupTitle"));      element = document.getElementById("permissionsTab");      element.label = cookieBundle.getString("tabBannedPopups");      tabBox.selectedTab = element;      element = document.getElementById("permissionsText");      element.value = cookieBundle.getString("textBannedPopups");      document.getElementById("dummyContainer").hidden = "true";      document.getElementById("cookiesTab").hidden = "true";    }  } catch(e) {  }  // load in the cookies and permissions  cookiesTree = document.getElementById("cookiesTree");  permissionsTree = document.getElementById("permissionsTree");  if (dialogType == cookieType) {    loadCookies();  }  loadPermissions();  // be prepared to reload the display if anything changes  kObserverService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService);  kObserverService.addObserver(cookieReloadDisplay, "cookieChanged", false);  kObserverService.addObserver(cookieReloadDisplay, "perm-changed", false);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/7bb2ca31b72c2d3ea309c755804179bf5afd0067/cookieViewer.js/clean/xpfe/components/permissions/content/cookieViewer.js