Promise.withResolvers() is a new JavaScript feature that has just shipped in Firefox 121.
It has exactly the same interface as our PromiseUtils.defer(), and so I have just landed patches on autoland to replace PromiseUtils.defer() with Promise.withResolvers().
With the landing, PromiseUtils.defer() no longer exist. Please use Promise.withResolvers() in future.
Mark.