mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 16:46:26 +00:00
Bug 39957; specify VALIDATE_NEVER cache flag when (re)loading URLs to save stuff; r=radha@netscape.com
This commit is contained in:
parent
d5f7b5b806
commit
cdd57c3110
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user