Closed
Bug 223099
Opened 21 years ago
Closed 21 years ago
Obsolete FTP channel code in nsProgressDialog.js
Categories
(Core Graveyard :: File Handling, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.6beta
People
(Reporter: neil, Assigned: neil)
References
()
Details
Attachments
(1 file)
|
2.77 KB,
patch
|
Biesinger
:
review+
darin.moz
:
superreview+
|
Details | Diff | Splinter Review |
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?
Comment 1•21 years ago
|
||
All channels should be suspendable, no? Any that are not, will break badly anyway when we fix our pre-downloading problems...
Comment 2•21 years ago
|
||
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).
Comment 3•21 years ago
|
||
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.
| Assignee | ||
Comment 4•21 years ago
|
||
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...
| Assignee | ||
Updated•21 years ago
|
Attachment #133848 -
Flags: superreview?(darin)
Attachment #133848 -
Flags: review?(cbiesinger)
Comment 5•21 years ago
|
||
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?
| Assignee | ||
Comment 6•21 years ago
|
||
No, you need those strings for the real pause/resume function.
Updated•21 years ago
|
Attachment #133848 -
Flags: review?(cbiesinger) → review+
Comment 7•21 years ago
|
||
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+
| Assignee | ||
Comment 8•21 years ago
|
||
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
| Assignee | ||
Comment 9•21 years ago
|
||
Fix checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
I believe this bug caused bug 224449
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•