Closed Bug 1681002 Opened 4 years ago Closed 4 years ago

Callback during verifyLogon() may throw exception into C++ Gecko

Categories

(Thunderbird :: Account Manager, defect)

defect

Tracking

(thunderbird_esr78 wontfix)

RESOLVED FIXED
86 Branch
Tracking Status
thunderbird_esr78 --- wontfix

People

(Reporter: david.ward, Assigned: david.ward)

Details

Attachments

(1 file)

Noticed by :BenB during a code review involving changes to verifyLogin():

This function is also called from tryNextLogon(), where it's called twice. This caller has no logger attached, and worse, it doesn't even have a try/catch. It would throw into onStopRunningUrl(), which throws the exception into C++ Gecko. Not good.

Filing this as a separate bug (partly because the revised patch is no longer related to the original bug).

Also, simplify the logging of exceptions caught during verifyConfig().

Assignee: nobody → david.ward
Summary: verifyLogon() may throw unlogged exception into C++ Gecko → Callback during verifyLogon() may throw exception into C++ Gecko

Thank you!
r=BenB

Severity: -- → S4
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
OS: Unspecified → All
Hardware: Unspecified → All
Attachment #9191546 - Flags: review+

Once you completed testing (see Phab), you can set keyword checkin-needed.

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/18131ca2cd00
Catch exception in OnStopRunningUrl() callback during verifyLogon(). r=BenB,mkmelin

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: