Closed Bug 237611 Opened 21 years ago Closed 21 years ago

title improper If percent of downloading is 0%

Categories

(SeaMonkey :: Download & File Handling, defect)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dantifer, Assigned: dantifer)

Details

Attachments

(1 file)

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7a) Gecko/20040219 When you are downloading a very large file or the network is quite poor, the percent of the downloading progress is 0% and remains 0% for a moment.then the title of the progressdialog doesn't update until percent > 0%. Of course this is not a big problem. but I think it is better to fix it. Reproducible: Always Steps to Reproduce: 1.set this.mPercent = -1; in the construction function. 2. 3. Actual Results: title updated properly. Expected Results: title updated properly.
I'm pretty sure I've seen this bug somehwere already... Are you saying that doing "this.mPercent = -1;" fixes this bug?
Attached patch in patch formSplinter Review
Ah - that does indeed fix the bug. the reason is that setPercent checks if aPercent != mPercent, and 0 == 0. so init'ing to -1 is the right fix.
Comment on attachment 153597 [details] [diff] [review] in patch form r=biesi
Attachment #153597 - Flags: superreview?(bzbarsky)
Attachment #153597 - Flags: review+
Comment on attachment 153597 [details] [diff] [review] in patch form Sure. sr=bzbarsky. File a bug on firefox to decide whether this is relevant to them, please.
Attachment #153597 - Flags: superreview?(bzbarsky) → superreview+
Assignee: download-manager → dantifer.dang
Checking in nsProgressDialog.js; /cvsroot/mozilla/embedding/components/ui/progressDlg/nsProgressDialog.js,v <-- nsProgressDialog.js new revision: 1.40; previous revision: 1.39 done No need to file a firefox bug - it doesn't use the progress dialog.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
OS: Windows 2000 → All
Hardware: PC → All
Resolution: --- → FIXED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: