add: gOrigin = window.arguments[3]; 
context: function prefillAlertInfo(){  // unwrap all the args....  // arguments[0] --> array of folders with new mail  // arguments[1] --> the observer to call back with notifications about the alert  // arguments[2] --> user initiated boolean. true if the user initiated opening the alert   //                 (which means skip the fade effect and don't auto close the alert)  var foldersWithNewMail = window.arguments[0];    gAlertListener = window.arguments[1];  gUserInitiated = window.arguments[2];  // for now just grab the first folder which should be a root folder  // for the account that has new mail.   var rootFolder = foldersWithNewMail.GetElementAt(0).QueryInterface(Components.interfaces.nsIWeakReference).QueryReferent(Components.interfaces.nsIMsgFolder);  // generate an account label string based on the root folder  var label = document.getElementById('alertTitle');  var totalNumNewMessages = rootFolder.getNumNewMessages(true);  label.value = document.getElementById('bundle_messenger').getFormattedString(totalNumNewMessages == 1 ? "newBiffNotification_message" : "newBiffNotification_messages",                                                                                      [rootFolder.prettiestName, totalNumNewMessages]);  // this is really the root folder and we have to walk through the list to find the real folder that has new mail in it...:(  var allFolders = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray);  rootFolder.ListDescendents(allFolders);  var numFolders = allFolders.Count();  var folderSummaryInfoEl = document.getElementById('folderSummaryInfo');  folderSummaryInfoEl.mMaxMsgHdrsInPopup = gNumNewMsgsToShowInAlert;  for (var folderIndex = 0; folderIndex < numFolders; folderIndex++)  {    var folder = allFolders.GetElementAt(folderIndex).QueryInterface(Components.interfaces.nsIMsgFolder);    if (folder.hasNewMessages)    {      var asyncFetch = {};      folderSummaryInfoEl.parseFolder(folder, new urlListener(folder), asyncFetch);      if (asyncFetch.value)        gPendingPreviewFetchRequests++;    }  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/e8ea696f165f4b02f01f1fd410af8dd33948d483/newmailalert.js/buggy/mail/base/content/newmailalert.js