[Webkit-unassigned] [Bug 164193] Implement requestIdleCallback

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 15 03:42:25 PDT 2023


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

--- Comment #16 from Sam Sneddon [:gsnedders] <gsnedders at apple.com> ---
(In reply to Michael Catanzaro from comment #15)
> Oh, maybe I should look at the *closed* dependent bugs. Finally I see that
> Ryosuke has already landed most of the work, e.g. in
> https://trac.webkit.org/changeset/251050/webkit, including everything that I
> had planned to look into. But the feature is disabled (presumably due to the
> warning in comment #3). OK.

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?

> So I think next step is to expose this only for github.com for starters, to
> avoid breaking other websites before Ryosuke thinks it is ready. I don't
> think we actually have capability to enable DOM APIs via quirks currently.
> Will report a separate bug for this.

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.

-- 
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/046f7c0c/attachment.htm>


More information about the webkit-unassigned mailing list