Closed Bug 288696 Opened 19 years ago Closed 19 years ago

HandleMDNResponse should not be returning 0

Categories

(Thunderbird :: Mail Window Front End, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: iannbugzilla, Assigned: iannbugzilla)

Details

Attachments

(1 file)

Bienvenu suggest that this should be patched on TB too.

Quoting from Neil's comments in bug 288529
  var mimeHdr;

  try {
    mimeHdr = aUrl.mimeHeaders;
  } catch (ex) { return 0;}

This shouldn't be returning 0 here, because our version at least of
HandleMDNResponse does not return a value. Also the return should be on its own
line, the compact catch syntax only applies when you're only want to ignore
exceptions.
This patch:
* Does return instead of return 0
* Does not use compact form of catch
* Does some whitespace tidy up round code being changed
Attachment #179323 - Flags: superreview?(bienvenu)
Attachment #179323 - Flags: review?(mscott)
Attachment #179323 - Flags: superreview?(bienvenu) → superreview+
Attachment #179323 - Flags: review?(mscott) → review+
Comment on attachment 179323 [details] [diff] [review]
Patch v0.1 (Checked in)

Checking in mailWindowOverlay.js;
/cvsroot/mozilla/mail/base/content/mailWindowOverlay.js,v  <-- 
mailWindowOverlay.js
new revision: 1.86; previous revision: 1.85
done
Attachment #179323 - Attachment description: Patch v0.1 → Patch v0.1 (Checked in)
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Verified FIXED via code inspection through LXR.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: