rem: window.XULBrowserWindow = window.MsgStatusFeedback; 
add: window.QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIWebNavigation) .QueryInterface(Components.interfaces.nsIDocShellTreeItem).treeOwner .QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIXULWindow) .XULBrowserWindow = window.MsgStatusFeedback; 
context: function CreateMailWindowGlobals(){  // get the messenger instance  CreateMessenger();  prefServices = Components.classes[prefContractID].getService(Components.interfaces.nsIPrefService);  pref = prefServices.getBranch(null);  //Create windows status feedback  // set the JS implementation of status feedback before creating the c++ one..  window.MsgStatusFeedback = new nsMsgStatusFeedback();  // double register the status feedback object as the xul browser window implementation  window.XULBrowserWindow = window.MsgStatusFeedback;  statusFeedback           = Components.classes[statusFeedbackContractID].createInstance();  statusFeedback = statusFeedback.QueryInterface(Components.interfaces.nsIMsgStatusFeedback);  /*    not in use unless we want the lock button back  // try to create and register ourselves with a security icon...  var securityIcon = document.getElementById("security-button");  if (securityIcon) {    // if the client isn't built with psm enabled then we won't have a secure UI to monitor the lock icon    // so be sure to wrap this in a try / catch clause...    try {      var secureUI;      // we may not have a secure UI if psm isn't installed!      if (secureUIContractID in Components.classes) {        secureUI = Components.classes[secureUIContractID].createInstance();        if (secureUI) {          secureUI = secureUI.QueryInterface(Components.interfaces.nsISecureBrowserUI);          secureUI.init(_content, securityIcon);        }      }    }    catch (ex) {}  }  */  window.MsgWindowCommands = new nsMsgWindowCommands();  //Create message window object  msgWindow = Components.classes[msgWindowContractID].createInstance();  msgWindow = msgWindow.QueryInterface(Components.interfaces.nsIMsgWindow);  msgComposeService = Components.classes['@mozilla.org/messengercompose;1'].getService();  msgComposeService = msgComposeService.QueryInterface(Components.interfaces.nsIMsgComposeService);  mailSession = Components.classes["@mozilla.org/messenger/services/session;1"].getService(Components.interfaces.nsIMsgMailSession);  accountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager);  RDF = Components.classes['@mozilla.org/rdf/rdf-service;1'].getService();  RDF = RDF.QueryInterface(Components.interfaces.nsIRDFService);  msgComposeType = Components.interfaces.nsIMsgCompType;  msgComposeFormat = Components.interfaces.nsIMsgCompFormat;  gMessengerBundle = document.getElementById("bundle_messenger");  gBrandBundle = document.getElementById("bundle_brand");  //Create datasources  accountManagerDataSource = Components.classes[accountManagerDSContractID].createInstance();  folderDataSource         = Components.classes[folderDSContractID].createInstance();  accountCentralBox = document.getElementById("accountCentralBox");  gSearchBox = document.getElementById("searchBox");}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/509a318898101c3db6db5b78b0a5fd8d5745a6b0/mailWindow.js/clean/mail/base/content/mailWindow.js