mozIDownloadPlatform

Methods

downloadDone(aSource, aTarget, aContentType, aIsPrivate)

Perform platform specific operations when a download is done.

Windows:
Add the download to the recent documents list
Set the file to be indexed for searching
Mac:
Bounce the downloads dock icon
GTK:
Add the download to the recent documents list
Save the source uri in the downloaded file’s metadata
Android:
Scan media

Parameters

aSource Source URI of the download
aTarget Downloaded file
aContentType The source's content type
aIsPrivate True for private downloads

Returns

none

mapUrlToZone(aURL)

Proxy for IInternetSecurityManager::MapUrlToZone().

Windows only.

Parameters

aURL URI of the download

Returns

Security Zone corresponding to aURL.

Constants

ZONE_MY_COMPUTER

Security Zone constants. Used by mapUrlToZone().

ZONE_INTRANET

ZONE_TRUSTED

ZONE_INTERNET

ZONE_RESTRICTED