[webkit-changes] [WebKit/WebKit] 38e5de: makeOpportunisticTaskDeferralScopeIfPossible has a...

Ryosuke Niwa noreply at github.com
Sat Aug 5 20:38:23 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 38e5de251688f84e101e288b166ca9254997bf78
      https://github.com/WebKit/WebKit/commit/38e5de251688f84e101e288b166ca9254997bf78
  Author: Ryosuke Niwa <rniwa at webkit.org>
  Date:   2023-08-05 (Sat, 05 Aug 2023)

  Changed paths:
    M Source/WebCore/page/DOMTimer.cpp

  Log Message:
  -----------
  makeOpportunisticTaskDeferralScopeIfPossible has a wrong early exit logic
https://bugs.webkit.org/show_bug.cgi?id=259857

Reviewed by Yusuke Suzuki and Wenson Hsieh.

We want to defer opportunistic task whenever we have a timer firing in the next 1ms,
not whenever we have a timer firing in 1ms or later.

* Source/WebCore/page/DOMTimer.cpp:
(WebCore::DOMTimer::makeOpportunisticTaskDeferralScopeIfPossible):

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




More information about the webkit-changes mailing list