Bug 353560 - Unknown Content dialog not dismissed when filepicker opens. r=gavin.

This commit is contained in:
mozilla.mano%sent.com 2006-10-10 00:08:46 +00:00
parent 217e108dff
commit d100f92d21

View File

@ -885,7 +885,12 @@ nsUnknownContentTypeDialog.prototype = {
this.mLauncher.saveToDisk(targetFile, false);
#endif
this.mLauncher.saveToDisk(null, false);
// Since saveToDisk may open a file picker and therefore block this routine,
// we should only call it once the dialog is closed.
var _delayedSaveToDisk = function(aSelf) {
aSelf.mLauncher.saveToDisk(null, false);
}
this.mDialog.setTimeout(_delayedSaveToDisk, 0, this);
}
else
this.mLauncher.launchWithApplication(null, false);