add: if (numSelected == 0) { dump("MsgViewPageSource(): No messages selected.\n"); return false; }   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");   url = mailSession.ConvertMsgURIToMsgURL(uri); if (url) url += "?header=src";   window.openDialog( "chrome: "_blank", "chrome,menubar,status,dialog=no,resizable", url, "view-source" ); } 
context: function MsgViewPageSource() {	dump("MsgViewPageSource(); \n ");		var uri = window.frames["messagepane"].location+"?header=src";	dump('URI=' + uri);	  // Use a browser window to view source  window.openDialog( "chrome://navigator/content/",                     "_blank",                     "chrome,menubar,status,dialog=no,resizable",                     uri,                     "view-source" );}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/b68c624cd11b2c3a011e38bc9e5845d3710cbd4e/widgetglue.js/clean/mailnews/base/resources/content/widgetglue.js