rem:  window.close(); 
add:  if ( !retry ) { window.setTimeout( "window.close();", 10 ); } 
context: function save() {    // Use stream xfer component to prompt for destination and save.    var xfer = Components.classes[ "component://netscape/appshell/component/xfer" ].getService();    xfer = xfer.QueryInterface( Components.interfaces.nsIStreamTransfer );    try {        // When Necko lands, we need to receive the real nsIChannel and        // do SelectFileAndTransferLocation!        // Use this for now...        xfer.SelectFileAndTransferLocationSpec( data.location, window.opener );    } catch( exception ) {        // Failed (or cancelled), give them another chance.        alert( "Save failed, rv=" + exception + "\n" );        return;    }    // Save underway, close this dialog.    window.close();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c2ddd3fcb9013c2f53a10120346b9b59f0af2ee8/unknownContent.js/clean/xpfe/components/ucth/resources/unknownContent.js