Closed Bug 223099 Opened 21 years ago Closed 21 years ago

Obsolete FTP channel code in nsProgressDialog.js

Categories

(Core Graveyard :: File Handling, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.6beta

People

(Reporter: neil, Assigned: neil)

References

()

Details

Attachments

(1 file)

The linked code in nsProgressDialog.js used to enable the pause/resume button
for FTP downloads. However this facility was bypassed in revision 1.10 when
blake made the button permanently visible. Should this code just be completely
removed (for which I am willing to write a patch), or should some attempt be
made to detect a suspendable channel, and disable/hide the button as appropriate?
All channels should be suspendable, no?  Any that are not, will break badly
anyway when we fix our pre-downloading problems...
i think most of the channels should be suspendable now.  there may be some
exceptions in mailnews.  i think biesi may still be working on adding Suspend/
Resume support to a few more (nsIconChannel for example).
yes, I am working on adding Suspend/Resome to the (win) nsIconChannel (bug
221593), and we have a bug about the imap channel (bug 217434). to my knowledge,
all other channels support suspend/resume; except the iconchannels for other
platforms (may be addressed by Bug 223128, Bug 223130), but I really doubt
people would download anything from a moz-icon url and want to pause that.


so... just always enabling that button seems perfectly fine to me.
Attached patch Proposed patchSplinter Review
Note that while researching this patch I found a really ugly bug - the
startTime setter doesn't return the value that was set :-( Fortunately nobody
uses the return value, but still...
Attachment #133848 - Flags: superreview?(darin)
Attachment #133848 - Flags: review?(cbiesinger)
Comment on attachment 133848 [details] [diff] [review]
Proposed patch

-		     this.dialogElement("pauseResume").label =
this.getString("pause");

doesn't this require other changes, like removing a .properties entry or
something like that?
No, you need those strings for the real pause/resume function.
Attachment #133848 - Flags: review?(cbiesinger) → review+
Comment on attachment 133848 [details] [diff] [review]
Proposed patch

sr=darin

it'll be interesting to see how well our non-FTP suspend/resume holds up in
practice.
Attachment #133848 - Flags: superreview?(darin) → superreview+
darin, that's why I was moved to file this bug, it already works.
Assignee: file-handling → neil.parkwaycc.co.uk
Target Milestone: --- → mozilla1.6beta
Fix checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: