Closed Bug 596402 Opened 14 years ago Closed 14 years ago

Pausing download shows error

Categories

(Firefox for Android Graveyard :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(fennec2.0b2+)

VERIFIED FIXED
Tracking Status
fennec 2.0b2+ ---

People

(Reporter: wesj, Assigned: crowderbt)

References

Details

Attachments

(1 file, 1 obsolete file)

When you pause a download, a download error prompt is show reading:

"Downloading
 could not be saved, because the source file could not be read.
Try again later, or contact the server administrator"

The good news is, the download actually is paused and can be resumed.
Crowder, this is on you... I think.

Something funny happens in nsExternalAppHandler. When the download is paused, its Cancel is called so that mCancelled = true; However, between that and when OnStopRequest is called later, mCancelled = false; and the download assumes some error has happened.
Assignee: nobody → crowderbt
The patch in bug 591081 caused this bug by invoking nsExternalAppHandler::OnStopRequest correctly, which we didn't do before.  The patch is, I think, pretty easy and coming right up.
Blocks: 591081
Attached patch only manually prompt for chrome (obsolete) — Splinter Review
This whole section of code should probably simply be removed.  The code here really has no business providing a prompt in the absense of a progress listener.
Attachment #475582 - Flags: review?(dwitte)
Attached patch with MOZ_IPCSplinter Review
Need wrappers to build...
Attachment #475582 - Attachment is obsolete: true
Attachment #475584 - Flags: review?(dwitte)
Attachment #475582 - Flags: review?(dwitte)
tracking-fennec: --- → ?
tracking-fennec: ? → 2.0b2+
Comment on attachment 475584 [details] [diff] [review]
with MOZ_IPC

r=dwitte
Attachment #475584 - Flags: review?(dwitte) → review+
http://hg.mozilla.org/mozilla-central/rev/10257eea7533

Landed this a while ago, sorry for not resolving.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Verified:
Mozilla/5.0 (Maemo;Linux armv71; rv:2.0b7pre)Gecko/20100922 Firefox/4.0b7pre Fennec/2.0b1pre

Mozilla/5.0 (Android; Linux armv71; rv2.0b7pre) Gecko/20100922 Firefox/4.0b7pre Fennec/2.0b1pre

For Android, don't use the context picker : bug 593408

Steps to repro :
1. go to URL : http://people.mozilla.com/~nhirata/html_tp/Docs/
2. download IMG_0092.zip
3. during download go to the control panel
4. select pause
Status: RESOLVED → VERIFIED
Flags: in-litmus?
Flags: in-litmus? → in-litmus?(nhirata.bugzilla)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: