rem:   event.preventDefault(); event.stopPropagation();  
context: function getPageFromEvent(event) {  var page = {};  if (event.target.channel) {    // this was an XMLHttpRequest page load    var request = event.target;    page.uri = request.channel.originalURI;    if (!request.responseXML) {      throw(page.uri.spec + " page downloaded as XML, but not XML");      // XXX Update the page's content type annotation      // XXX Do something about pages with an XML content type      // but which aren't XML?    }        page.content = request.responseXML;    if (page.content.documentElement.nodeName == "parsererror") {      throw(page.uri.spec + " page downloaded, but invalid XML");      // XXX Figure out the parsererror format and log a specific error.    }  }  else if (event.currentTarget && event.currentTarget.nodeName &&           event.currentTarget.nodeName == "iframe") {    // this was a hidden iframe page load    // Make sure this event doesn't reach any other load handlers    // intended for visible document frames in the browser window.    event.preventDefault();    event.stopPropagation();    var iframe = event.currentTarget;    page.uri = iframe.originalURI;    page.content = iframe.contentDocument;    page.container = iframe;  }#ifdef MOZ_PLACES  // This is as good a time as any to update the page's content type  // in the annotations database.  XXX But should we only do this for pages  // being summarized?  If we do it here, we'll do it for generators too.  var ans = Cc["@mozilla.org/browser/annotation-service;1"].            getService(Ci.nsIAnnotationService);  ans.setAnnotationString(page.uri,                          FIELD_CONTENT_TYPE,                          page.content.contentType,                          0,                          ans.EXPIRE_NEVER);#endif  return page;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/70d402a54e1e88473149dcf31d69f307e91c587e/nsMicrosummaryService.js/buggy/browser/components/microsummaries/src/nsMicrosummaryService.js