Bug 384068 - [10.5] Firefox should download files to Leopard's Download Stack by default

Additionally, this sets browser.download.folderList to 1, which means we use the
downloads folder for all operating systems and oses.  We can now also remove the
special code in browser-startup to set this pref to 1 for Vista only.

ui-r=beltzner
r=gavin
This commit is contained in:
Shawn Wilsher 2009-01-28 19:00:14 -05:00
parent 78d557da18
commit 67e35357d1
2 changed files with 1 additions and 20 deletions

View File

@ -254,7 +254,7 @@ pref("browser.urlbar.default.behavior", 0);
pref("browser.download.saveLinkAsFilenameTimeout", 1000);
pref("browser.download.useDownloadDir", true);
pref("browser.download.folderList", 0);
pref("browser.download.folderList", 1);
pref("browser.download.manager.showAlertOnComplete", true);
pref("browser.download.manager.showAlertInterval", 2000);
pref("browser.download.manager.retention", 2);

View File

@ -1274,25 +1274,6 @@ function delayedStartup(isLoadingBlank, mustLoadSidebar) {
Components.utils.reportError("Failed to init content pref service:\n" + ex);
}
#ifdef XP_WIN
// For Vista, flip the default download folder pref once from Desktop to Downloads
// on new profiles.
try {
var sysInfo = Cc["@mozilla.org/system-info;1"].
getService(Ci.nsIPropertyBag2);
if (parseFloat(sysInfo.getProperty("version")) >= 6 &&
!gPrefService.getPrefType("browser.download.dir") &&
gPrefService.getIntPref("browser.download.folderList") == 0) {
var dnldMgr = Cc["@mozilla.org/download-manager;1"]
.getService(Ci.nsIDownloadManager);
gPrefService.setCharPref("browser.download.dir",
dnldMgr.defaultDownloadsDirectory.path);
gPrefService.setIntPref("browser.download.folderList", 1);
}
} catch (ex) {
}
#endif
// initialize the session-restore service (in case it's not already running)
if (document.documentElement.getAttribute("windowtype") == "navigator:browser") {
try {