[Webkit-unassigned] [Bug 164193] Implement requestIdleCallback

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 15 07:56:04 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=164193

--- Comment #17 from Michael Catanzaro <mcatanzaro at gnome.org> ---
(In reply to Sam Sneddon [:gsnedders] from comment #16)
> Yes, a bunch has landed, but there's also various things that per spec
> should go via the event loop but don't in WebKit (see the open dependent
> bugs), which means we will quite often (with the current off-by-default
> implementation) fire the callback prior to actually being idle. We've been
> pretty conservative here, not wanting to expose it while it still has
> obviously different timing characteristics to other engines; that said, it
> probably is no worse than setTimeout(…, 0) today?

Right, so I see now that the challenge here is not requestIdleCallback itself but  rather the DOM EventLoop portion of the HTML spec, which WebKit previously had no concept of. Looks like that all is fairly new and not quite right yet. I would have hoped that getting things not exactly right would be no worse than setTimeout(…, 0) but there is a warning in comment #3 indicating otherwise, so I guess we need to be careful here.

> See EnabledByQuirk/DisabledByQuirk IDL extended attributes; you probably
> just want to define a quirk for GitHub and use that? That said, given GitHub
> _does_ work on Safari this should probably only enable it on the platforms
> where it is currently broken.

Looks like exactly what I want. Thanks. Whether to limit the quirk to specific ports or not, I'm not sure. (There are risks either way, but at least they'll only affect github.com.)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230315/fd1b5b5e/attachment.htm>


More information about the webkit-unassigned mailing list