Bug 290648 make nsITransfer::init take an nsICancelable, and remove the observer attribute

r=bz sr=darin a=asa
This commit is contained in:
cbiesinger%web.de 2006-07-29 05:43:48 +00:00
parent 5eac9662f0
commit 1d96fa1aa9

View File

@ -416,12 +416,14 @@ function internalSave(aURL, aDocument, aDefaultFileName, aContentDisposition,
const kWrapColumn = 80;
tr.init((aChosenData ? aChosenData.uri : fileInfo.uri),
persistArgs.target, null, null, null, persist);
persistArgs.target, "", null, null, persist);
persist.progressListener = tr;
persist.saveDocument(persistArgs.source, persistArgs.target, filesFolder,
persistArgs.contentType, encodingFlags, kWrapColumn);
} else {
tr.init((aChosenData ? aChosenData.uri : source),
persistArgs.target, null, null, null, persist);
persistArgs.target, "", null, null, persist);
persist.progressListener = tr;
var referer = aReferrer || getReferrer(document);
persist.saveURI((aChosenData ? aChosenData.uri : source),
null, referer, persistArgs.postData, null, persistArgs.target);