Closed Bug 1878420 Opened 2 years ago Closed 1 month ago

Use `AbortSignal.any` and `AbortSignal.timeout` in bookmark sync

Categories

(Firefox :: Sync, task, P3)

task

Tracking

()

RESOLVED FIXED
142 Branch
Tracking Status
firefox142 --- fixed

People

(Reporter: lina, Assigned: lina)

References

(Depends on 1 open bug)

Details

Attachments

(1 file)

SyncedBookmarksMirror.sys.mjs has a helper called anyAborted that takes two signals, and returns a new signal that aborts if either of the inputs abort. The bookmarks sync engine also uses a Watchdog helper that aborts merges that take longer than 5 minutes.

Bug 1830781 implemented AbortSignal.any(), and bug 1753309 implemented AbortSignal.timeout(), for these very use cases. Let's replace our hand-rolled helpers with them!

Severity: N/A → S3
Priority: -- → P3
Depends on: 1879215

AbortSignal.any() is the standardized version of our anyAborted
helper.

We can't replace Async.Watchdog with AbortSignal.timeout() yet, because of bug 1879215, but we can use AbortSignal.any().

Pushed by mbanner@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/46c2a902fc4d https://hg.mozilla.org/integration/autoland/rev/4e411b993ac0 Use `AbortSignal.any()` in the bookmarks mirror. r=sync-reviewers,places-reviewers,mak,markh
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 142 Branch
QA Whiteboard: [qa-triage-done-c143/b142]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: