rem: OpenNewTab(newTab); 
add: document.getElementById('tabmail').addTab(newTab); 
context: function MsgOpenNewTabForFolder(uri, key){  var uriToOpen = uri;  var keyToSelect = key;    if (!uriToOpen)    // use GetSelectedFolderURI() to find out which message to open instead of    // GetLoadedMsgFolder().QueryIntervace(Components.interfaces.nsIRDFResource).value.    // This is required because on a right-click, the currentIndex value will be    // different from the actual row that is highlighted.  GetSelectedFolderURI()    // will return the message that is highlighted.    uriToOpen = GetSelectedFolderURI();    // set up the first tab, which was previously invisible.  // This assumes the first tab is always a 3-pane ui, which  // may not be right, especially if we have the ability  // to persist your tab setup.  var newTab = new msgFolderTab();  newTab.uriToOpen = uriToOpen;  OpenNewTab(newTab); }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/b63a5b72361765e9c991347479ce265f17a15db6/mailWindowOverlay.js/buggy/mail/base/content/mailWindowOverlay.js