diff --git a/toolkit/content/contentAreaUtils.js b/toolkit/content/contentAreaUtils.js index 04dd0f4ed7f2..518ef1f1a896 100644 --- a/toolkit/content/contentAreaUtils.js +++ b/toolkit/content/contentAreaUtils.js @@ -464,7 +464,7 @@ function getTargetFile(aFpP, aSkipPrompt) .getService(Components.interfaces.nsIDownloadManager); try { var lastDir = prefs.getComplexValue("lastDir", nsILocalFile); - if (!useDownloadDir && lastDir.exists()) + if ((!aSkipPrompt || !useDownloadDir) && lastDir.exists()) dir = lastDir; else dir = dnldMgr.userDownloadsDirectory;