[webkit-changes] [WebKit/WebKit] f008b0: [macOS] Only disable the background responsiveness...

Chris Dumez noreply at github.com
Tue Jul 11 12:35:31 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f008b08e638510b256b1cc0e07881cb292a60d74
      https://github.com/WebKit/WebKit/commit/f008b08e638510b256b1cc0e07881cb292a60d74
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2023-07-11 (Tue, 11 Jul 2023)

  Changed paths:
    M Source/WebKit/UIProcess/BackgroundProcessResponsivenessTimer.cpp
    M Source/WebKit/UIProcess/ProcessThrottler.cpp
    M Source/WebKit/UIProcess/ProcessThrottlerClient.h
    M Source/WebKit/UIProcess/WebProcessProxy.cpp
    M Source/WebKit/UIProcess/WebProcessProxy.h

  Log Message:
  -----------
  [macOS] Only disable the background responsiveness timer once the process has been suspended
https://bugs.webkit.org/show_bug.cgi?id=259115
rdar://111702782

Reviewed by Ben Nham.

Only disable the background responsiveness timer once the process has been
suspended. We wait a long time on macOS to suspend background processes so the
background responsiveness timer still is useful during this "running in the
background" period.

The background responsiveness timer had very recently been disabled on macOS
in 265536 at main.

* Source/WebKit/UIProcess/BackgroundProcessResponsivenessTimer.cpp:
(WebKit::BackgroundProcessResponsivenessTimer::shouldBeActive const):
* Source/WebKit/UIProcess/ProcessThrottler.cpp:
(WebKit::ProcessThrottler::clearAssertion):
* Source/WebKit/UIProcess/ProcessThrottlerClient.h:
(WebKit::ProcessThrottlerClient::didDropLastAssertion):
* Source/WebKit/UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::didChangeThrottleState):
(WebKit::WebProcessProxy::didDropLastAssertion):
* Source/WebKit/UIProcess/WebProcessProxy.h:

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




More information about the webkit-changes mailing list