Closed Bug 1843074 Opened 2 years ago Closed 2 years ago

SkippableTimer.done should be set immediately

Categories

(Firefox :: Address Bar, defect, P3)

defect

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox117 --- fixed

People

(Reporter: mak, Assigned: mak)

Details

Attachments

(1 file)

There's a potential pitfall in setting .done after promises resolves, where the callback may be invoked more than once.
Not the end of the worls siince once the promise is resolved further actions are ignored.. but still pointless work.

Invoking fire() in a loop may invoke the callback multiple times because done
is not set immediately.

Pushed by mak77@bonardo.net: https://hg.mozilla.org/integration/autoland/rev/1e9a021ee302 SkippableTimer.done should be set immediately. r=scunnane
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: