[webkit-changes] [WebKit/WebKit] 503380: WindowEventLoop can infinite loop trying to run id...

Ryosuke Niwa noreply at github.com
Thu Aug 24 14:24:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5033809fcf70c334b2d82119826fe6c42d59b1c4
      https://github.com/WebKit/WebKit/commit/5033809fcf70c334b2d82119826fe6c42d59b1c4
  Author: Ryosuke Niwa <rniwa at webkit.org>
  Date:   2023-08-24 (Thu, 24 Aug 2023)

  Changed paths:
    M Source/WebCore/dom/WindowEventLoop.cpp

  Log Message:
  -----------
  WindowEventLoop can infinite loop trying to run idle callback in suspended pages
https://bugs.webkit.org/show_bug.cgi?id=260667
<rdar://114384740>

Reviewed by Chris Dumez.

WindowEventLoop::didReachTimeToRun schedules itself again when an idle callback is
scheduled but we didn't have enough time to run it. This logic can infinite loop
when the timer never fires because the document has been suspended.

* Source/WebCore/dom/WindowEventLoop.cpp:
(WebCore::WindowEventLoop::didReachTimeToRun):

Canonical link: https://commits.webkit.org/267246@main




More information about the webkit-changes mailing list