Closed Bug 233105 Opened 21 years ago Closed 21 years ago

cancelling a download crashes

Categories

(SeaMonkey :: Download & File Handling, defect)

x86
Windows 2000
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.7alpha

People

(Reporter: Biesinger, Assigned: Biesinger)

Details

(Keywords: crash, regression)

Attachments

(1 file)

nsDownloadManager::CancelDownload calls DownloadEnded, which removes the
downlaod from the hashtable and releases the reference... CancelDownload still
has a weak reference, uses it to access the download object, and crashes.
Attached patch patchSplinter Review
additional changes: Do not use .Get in this file, only use GetWeak - saves some
codesize
Attachment #140633 - Flags: review?(neil.parkwaycc.co.uk)
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.7alpha
Severity: normal → critical
Comment on attachment 140633 [details] [diff] [review]
patch

Nice cleanup too.
Attachment #140633 - Flags: review?(neil.parkwaycc.co.uk) → review+
Attachment #140633 - Flags: superreview?(bzbarsky)
Comment on attachment 140633 [details] [diff] [review]
patch

Sure.  sr=bzbarsky
Attachment #140633 - Flags: superreview?(bzbarsky) → superreview+
checked in
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
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: