Closed Bug 1802917 Opened 2 years ago Closed 2 years ago

OpenPGP Key Manager status notice about loading keys doesn't disappear

Categories

(MailNews Core :: Security: OpenPGP, defect)

defect

Tracking

(thunderbird_esr102 unaffected)

RESOLVED FIXED
109 Branch
Tracking Status
thunderbird_esr102 --- unaffected

People

(Reporter: KaiE, Assigned: KaiE)

Details

(Keywords: regression)

Attachments

(1 file)

This is a regression in comm-central, not seen in current beta.

Open OpenPGP key manager.

The status text in the bottom area remains at "loading keys, please wait".

Expected: The text should disappear.

It looks like there is a race.
The loading code sets the statusText using document.l10n.setAttributes - which is probably async.
Later, after loading, the text is cleared by using a direct value assignment.
It looks like clearing happens quicker than the l10n code.

I've tried to make it consistent, by also using document.l10n.setAttributes - but I wasn't able to define an empty string in fluent.

It seems the easiest fix to avoid the race is by using a sync call for setting the initial message.

Assignee: nobody → kaie
Status: NEW → ASSIGNED
Target Milestone: --- → 109 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/94ae950df269
Avoid statusText race in OpenPGP key manager load. r=mkmelin

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

Attachment

General

Created:
Updated:
Size: