Open Bug 1873648 Opened 9 months ago Updated 1 month ago

Rename AbortFollower to something that matches the latest spec

Categories

(Core :: DOM: Core & HTML, task)

task

Tracking

()

People

(Reporter: vhilla, Assigned: saschanaz)

References

()

Details

Bug 1830781 implemented AbortSignal.any(). The according spec PR also removes the follow algorithm and mentions some follow-up work to remove its usages:

But we still need something corresponding to "add algorithm to AbortSignal" and so far AbortFollower was used for that internally. Can we just rename it and keep it?

Renaming seems like a good idea.

I briefly looked through the follow-up work and PR 1646 appears to be the only one that replaces a usage of follow with AbortSignal.any(). I'm not familiar with our fetch code, but it could be beneficial to replicate this change so that our implementation stays close to the spec.

Keywords: dev-doc-needed

I don't think this needs dev doc? This should be just an internal refactoring.

We should also remove AbortFollower inheritance in AbortSignal.

Assignee: nobody → krosylight
Summary: Replace AbortFollower with AbortSignal.any() → Rename AbortFollower to something that matches the latest spec
Depends on: 1916262
You need to log in before you can comment on or make changes to this bug.