Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f008b08e638510b256b1cc0e07881cb292a60d74
      
https://github.com/WebKit/WebKit/commit/f008b08e638510b256b1cc0e07881cb292a60d74
  Author: Chris Dumez <[email protected]>
  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@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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to