mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 22:05:44 +00:00
Bug 504513 - DownloadLastDir.jsm is imported during startup; r=gavin
This commit is contained in:
parent
16538c1ff6
commit
0ffe947eb7
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user