rem: gDownloadViewChildren = document.getElementById("downloadViewChildren"); 
context: function Startup(){  if (!window.arguments.length)    return;  const rdfSvcContractID = "@mozilla.org/rdf/rdf-service;1";  const rdfSvcIID = Components.interfaces.nsIRDFService;  gRDFService = Components.classes[rdfSvcContractID].getService(rdfSvcIID);    gNC_File = gRDFService.GetResource(NC_NS + "File");  gDownloadView = document.getElementById("downloadView");  gDownloadViewChildren = document.getElementById("downloadViewChildren");    gDownloadView.controllers.appendController(downloadViewController);  const dlmgrContractID = "@mozilla.org/download-manager;1";  const dlmgrIID = Components.interfaces.nsIDownloadManager;  gDownloadManager = Components.classes[dlmgrContractID].getService(dlmgrIID);  var ds = window.arguments[0];  gDownloadView.database.AddDataSource(ds);  gDownloadView.builder.rebuild();  gDownloadView.focus();  // Select the first item in the view, if any.   if (gDownloadViewChildren.hasChildNodes())     gDownloadView.selectItem(gDownloadViewChildren.firstChild);    var key;  if (navigator.platform.indexOf("Win") != -1)    key = "Win";  else if (navigator.platform.indexOf("Mac") != -1)    key = "Mac";  else {    key = "Unix";    document.getElementById("btn_openfile").hidden = true;  }  var bundle = document.getElementById("dlMgrBundle")  var label = bundle.getString("showInShellLabel" + key);  var accesskey = bundle.getString("showInShellAccesskey" + key);  var showBtn = document.getElementById("btn_showinshell");  showBtn.setAttribute("label", label);  showBtn.setAttribute("accesskey", accesskey);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/07d96867f11683becf5e1a6ca5e64e6a9324c957/downloadmanager.js/clean/xpfe/components/download-manager/resources/downloadmanager.js