Closed Bug 402360 Opened 18 years ago Closed 17 years ago

Pausing downloads that haven't started shouldn't debug assert

Categories

(Toolkit :: Downloads API, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9beta3

People

(Reporter: Mardak, Assigned: Mardak)

Details

Attachments

(1 file, 1 obsolete file)

We have a NS_NOTREACHED that will assert for debug builds which can cause problems with xpcshell testcases. NS_NOTREACHED("We don't have a resumable download or a request to suspend??");
Attached patch v1 (obsolete) — Splinter Review
Remove the NOTREACHED and update comments. + testcase! But some reason it prints out other stuff before PASS.. ../../../../_tests/xpcshell-simple/test_dm/unit/test_bug_402360.js: mozilla/trunk/mozilla/tools/test-harness/xpcshell-simple/test_all.sh: line 127: 1003 Abort trap NATIVE_TOPSRCDIR="$native_topsrcdir" TOPSRCDIR="$topsrcdir" $xpcshell -s $headfiles -f $t $tailfiles 2>$t.log 1>&2 PASS
Assignee: nobody → edilee
Status: NEW → ASSIGNED
Attachment #287237 - Flags: review?(comrade693+bmo)
Attached patch v1.1Splinter Review
Actually.. throw in the test for resume for good measure. The one iffy thing about this is that we rely on pause/resume to happen before the ProgressChange.
Attachment #287237 - Attachment is obsolete: true
Attachment #287239 - Flags: review?(comrade693+bmo)
Attachment #287237 - Flags: review?(comrade693+bmo)
yeah, that means it actually failed. Do a check-interactive to get more output as to what's wrong.
Comment on attachment 287239 [details] [diff] [review] v1.1 Canceling request per comment 3
Attachment #287239 - Flags: review?(comrade693+bmo)
Fixed by bug 410289.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3 M11
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: