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)
Firefox
Sync
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!
Updated•2 years ago
|
Severity: N/A → S3
Priority: -- → P3
Assignee | ||
Comment 1•2 years ago
|
||
AbortSignal.any()
is the standardized version of our anyAborted
helper.
Assignee | ||
Comment 2•2 years ago
|
||
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
Comment 4•1 month ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
status-firefox142:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 142 Branch
Updated•23 days ago
|
QA Whiteboard: [qa-triage-done-c143/b142]
You need to log in
before you can comment on or make changes to this bug.
Description
•