rem: function savePage( url ) {  if ( !url ) { url = window.content.location.href; }  var xfer = Components .classes[ "component: .getService( Components.interfaces.nsIStreamTransfer ); try {     xfer.SelectFileAndTransferLocationSpec( url, window ); } catch( exception ) {  dump( "SelectFileAndTransferLocationSpec failed, rv=" + exception + "\n" ); } return; } 
add: function savePage( url ) {  url = url ? url : window.content.location.href;  var xfer = getService("component: try {    xfer.SelectFileAndTransferLocationSpec( url, window ); } catch( exception ) {  } } 
context: function savePage( url ) {        // Default is to save current page.        if ( !url ) {            url = window.content.location.href;        }        // Use stream xfer component to prompt for destination and save.        var xfer = Components                     .classes[ "component://netscape/appshell/component/xfer" ]                       .getService( Components.interfaces.nsIStreamTransfer );        try {            // When Necko lands, we need to receive the real nsIChannel and            // do SelectFileAndTransferLocation!            // Use this for now...            xfer.SelectFileAndTransferLocationSpec( url, window );        } catch( exception ) {            // Failed (or cancelled), give them another chance.            dump( "SelectFileAndTransferLocationSpec failed, rv=" + exception + "\n" );        }        return;    }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/8e69dddc0edc0f907e3a6aaa48636a37fc7245dd/navigator.js/clean/xpfe/browser/resources/content/navigator.js