rem: url = mailSession.ConvertMsgURIToMsgURL(uri); 
add: url = mailSession.ConvertMsgURIToMsgURL(uri, msgWindow); 
context: function MsgViewPageSource() {	dump("MsgViewPageSource(); \n ");		var tree = GetThreadTree();	var selectedItems = tree.selectedItems;	var numSelected = selectedItems.length;  var url;  var uri;  var mailSessionProgID      = "component://netscape/messenger/services/session";  if (numSelected == 0)  {    dump("MsgViewPageSource(): No messages selected.\n");    return false;  }  // First, get the mail session  var mailSession = Components.classes[mailSessionProgID].getService();  if (!mailSession)    return false;  mailSession = mailSession.QueryInterface(Components.interfaces.nsIMsgMailSession);  if (!mailSession)    return false;	for(var i = 0; i < numSelected; i++)	{    uri = selectedItems[i].getAttribute("id");      // Now, we need to get a URL from a URI    url = mailSession.ConvertMsgURIToMsgURL(uri);    if (url)      url += "?header=src";    // Use a browser window to view source    window.openDialog( "chrome://navigator/content/",                       "_blank",                       "chrome,menubar,status,dialog=no,resizable",                       url,                       "view-source" );	}}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/02e52d25807a8313092b1699df29903c3a53f194/widgetglue.js/buggy/mailnews/base/resources/content/widgetglue.js