Bug 504513 - DownloadLastDir.jsm is imported during startup; r=gavin

This commit is contained in:
Ehsan Akhgari 2009-07-17 23:08:19 +04:30
parent 16538c1ff6
commit 0ffe947eb7

View File

@ -523,10 +523,11 @@ function initFileInfo(aFI, aURL, aURLCharset, aDocument,
}
}
Components.utils.import("resource://gre/modules/DownloadLastDir.jsm");
function getTargetFile(aFpP, /* optional */ aSkipPrompt)
{
if (typeof gDownloadLastDir != "object")
Components.utils.import("resource://gre/modules/DownloadLastDir.jsm");
const prefSvcContractID = "@mozilla.org/preferences-service;1";
const prefSvcIID = Components.interfaces.nsIPrefService;
var prefs = Components.classes[prefSvcContractID]