Closed shaseley closed 3 years ago
@smaug---- @Bas-moz @mystor @farre might also have thoughts on this. The API seems reasonable to me. One thing I vaguely recall in relation to this is whether it should reuse more of the setTimeout()
semantics when the delay
parameter is used. As in, perhaps HTML's timer initialization steps should be generalized so they can be reused here and implementations can apply the same kind of mitigations.
I haven't looked into this too deeply but the API seems reasonable enough on a surface level. Figuring out exactly how this will interact with gecko's event loops and scheduling work may be an interesting issue, but I'd defer to @Bas-moz and @krispyfries as the experts on how our event loops work. I imagine that the biggest part of this review would be when implementing to make sure that the APIs are easy/reasonable for us to implement.
I don't think anyone is objecting this API, and I believe @smaug---- and @Bas-moz both agreed that this is worth prototyping.
Can we change the status of this API to worth prototyping?
@sefeng211 yeah, please create a PR. It's probably big enough for a dashboard entry.
Request for Mozilla Position on an Emerging Web Specification
Other information