Tomaz Nolêto wrote:
Yes.. I realized that.. but in what moment the total file size can be determined so? Because It is displayed before the download is done in most of times.. isn't it? How is it done?
You can QI the nsIRequest to nsIChannel, which has a contentLength property (or a "content-length" propertybag property for 64-bit safeness, http://lxr.mozilla.org/seamonkey/source/netwerk/base/public/nsChannelProperties.h#46)
However, I don't think that this information is available during show()... you should get some nsIWebProgressListener/nsIWebProgressListener2 calls afterwards. In fact, you can directly use the aMaxProgress argument to onProgress.
-biesi
smime.p7s
Description: S/MIME Cryptographic Signature