Bug 39957; specify VALIDATE_NEVER cache flag when (re)loading URLs to save stuff; r=radha@netscape.com

This commit is contained in:
law%netscape.com 2006-09-14 05:53:15 +00:00
parent d5f7b5b806
commit cdd57c3110

View File

@ -85,10 +85,9 @@ function savePage( url )
// Use stream xfer component to prompt for destination and save.
var xfer = getService("component://netscape/appshell/component/xfer", "nsIStreamTransfer");
try {
// When Necko lands, we need to receive the real nsIChannel and
// do SelectFileAndTransferLocation!
// Use this for now...
xfer.SelectFileAndTransferLocationSpec( url, window, "", "" );
// Save; use page in cache if possible.
var postData = appCore.postData;
xfer.SelectFileAndTransferLocationSpec( url, window, "", "", true, postData );
}
catch( exception ) {
// suppress NS_ERROR_ABORT exceptions for cancellation
@ -1537,6 +1536,8 @@ function dumpExpr( expr ) {
dump( expr+"="+eval(expr)+"\n" );
}
var leakDetector = null;
// Initialize the LeakDetector class.
function LeakDetector(verbose)
{