Name Description Size Coverage
components.conf 472 -
content -
DownloadLastDir.sys.mjs The behavior implemented by gDownloadLastDir is documented here. In normal browsing sessions, gDownloadLastDir uses the browser.download.lastDir preference to store the last used download directory. The first time the user switches into the private browsing mode, the last download directory is preserved to the pref value, but if the user switches to another directory during the private browsing mode, that directory is not stored in the pref, and will be merely kept in memory. When leaving the private browsing mode, this in-memory value will be discarded, and the last download directory will be reverted to the pref value. Both the pref and the in-memory value will be cleared when clearing the browsing history. This effectively changes the last download directory to the default download directory on each platform. If passed a URI, the last used directory is also stored with that URI in the content preferences database. This can be disabled by setting the pref browser.download.lastDir.savePerSite to false. 7759 -
DownloadUtils.sys.mjs This module provides the DownloadUtils object which contains useful methods for downloads such as displaying file sizes, transfer times, and download locations. List of methods: [string status, double newLast] getDownloadStatus(int aCurrBytes, [optional] int aMaxBytes, [optional] double aSpeed, [optional] double aLastSec) string progress getTransferTotal(int aCurrBytes, [optional] int aMaxBytes) [string timeLeft, double newLast] getTimeLeft(double aSeconds, [optional] double aLastSec) [string dateCompact, string dateComplete] getReadableDates(Date aDate, [optional] Date aNow) [string displayHost, string fullHost] getURIHost(string aURIString) [string convertedBytes, string units] convertByteUnits(int aBytes) [int time, string units, int subTime, string subUnits] convertTimeUnits(double aSecs) 17355 -
HelperAppDlg.sys.mjs Determines if a given directory is able to be used to download to. @param aDirectory The directory to check. @return true if we can use the directory, false otherwise. 47970 -
jar.mn 350 -
moz.build 480 -
tests -