context: function GetSelectedAbCards(){  var abView = gAbView;  // if sidebar is open, and addressbook panel is open and focused,  // then use the ab view from sidebar (gCurFrame is from sidebarOverlay.js)  const abPanelUrl = "chrome://messenger/content/addressbook/addressbook-panel.xul";  if (document.getElementById("sidebar-box")) {    if (gCurFrame &&         gCurFrame.getAttribute("src") == abPanelUrl &&        document.commandDispatcher.focusedWindow == gCurFrame.contentDocument.defaultView)     {      abView = gCurFrame.contentDocument.defaultView.gAbView;    }  }  if (!abView)    return null;  var cards = new Array(abView.selection.count);  var i,j;  var count = abView.selection.getRangeCount();  var current = 0;  for (i=0; i < count; i++) {    var start = new Object;    var end = new Object;    abView.selection.getRangeAt(i,start,end);    for (j=start.value;j<=end.value;j++) {      cards[current] = abView.getCardFromRow(j);      current++;    }  }  return cards;}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/307b41dbea88d2cdb6eb544b496f44439d6f4c31/abCommon.js/clean/mailnews/addrbook/resources/content/abCommon.js