rem: var entry = sessionHistory.getEntryAtIndex(sessionHistory.index, false); 
add: var entry = sessionHistory.getEntryAtIndex(sessionHistory.index, false).QueryInterface(Components.interfaces.nsISHEntry); 
context:   function savePage(url)   {    var postData = null; // No post data, usually.    // Default is to save current page.    if ( !url )      url = window._content.location.href;    try {      var sessionHistory = getWebNavigation().sessionHistory;      var entry = sessionHistory.getEntryAtIndex(sessionHistory.index, false);      postData = entry.postData;    } catch(e) {    }    // Use stream xfer component to prompt for destination and save.    var xfer = Components.classes["@mozilla.org/appshell/component/xfer;1"].getService(Components.interfaces["nsIStreamTransfer"]);    try {      xfer.SelectFileAndTransferLocationSpec( url, window, "", "", true, postData );    } catch( exception ) {      return false;    }    return true;  }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/0e1b1dc5f331429a3a8049c8b4a6949d43e022f4/contentAreaUtils.js/buggy/xpfe/communicator/resources/content/contentAreaUtils.js