Closed Bug 338654 Opened 18 years ago Closed 18 years ago
Download completed message reports size as "?" if size was unknown whilst downloading
Some server/protocol combinations don't report the size of a file being downloaded. During the download we therefore report this as "?" in the download manager. Once the file is downloaded we continue to show "?" as the size, but we should report the size of the file we downloaded instead. The server that normally gives me this problem is a client's Microsoft Outlook Web Access (yuck!) server, and can't currently find publicly available URL illustrating the point. I have a patch.
Comment on attachment 222724 [details] [diff] [review] Initial patch sr=pink
Attachment #222724 - Flags: superreview+
Comment on attachment 222724 [details] [diff] [review] Initial patch Sadly not quite that simple. For some reason the download still gets saved with a total size of -1 and therefore when you restart Camino it is detected as "Cancelled".
Updated patch. File existance is only being checked after we save the download info to the dictionary, which means when you restart Camino the download shows as "Cancelled" because its size is not equal to its current progress. This patch forces the file existence check first time round, and therefore ensures the right data gets saved to the dictionary.
Comment on attachment 222729 [details] [diff] [review] Updated patch once again, with more feeling. sr=pink.
Attachment #222729 - Flags: superreview+
Comment on attachment 222729 [details] [diff] [review] Updated patch Looks good to me.
Attachment #222729 - Flags: review+
Whiteboard: [needs checkin]
Target Milestone: --- → Camino1.1
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.