rem: var messageList = tree.selectedItems; 
add: var messageList = ConvertDOMListToResourceArray(tree.selectedItems); 
context: function MsgMarkAsFlagged(markFlagged){  dump("\MsgMarkMsgAsFlagged from XUL\n");  var tree = GetThreadTree();  //get the selected elements  var messageList = tree.selectedItems;  messenger.MarkMessagesFlagged(tree.database, messageList, markFlagged);}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/1038bd68e3102cdd1cf7c3948945302647de6281/widgetglue.js/buggy/mailnews/base/resources/content/widgetglue.js