[webkit-changes] [WebKit/WebKit] 9bdfab: [iOS] Fix crash in ProcessThrottler::sendPrepareTo...
Miguel Salinas
noreply at github.com
Wed Dec 14 05:39:03 PST 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9bdfab144ce088159138cc60fe84bd20f293576a
https://github.com/WebKit/WebKit/commit/9bdfab144ce088159138cc60fe84bd20f293576a
Author: Miguel Salinas <miguel_salinas at apple.com>
Date: 2022-12-14 (Wed, 14 Dec 2022)
Changed paths:
M Source/WebKit/UIProcess/ProcessThrottler.cpp
Log Message:
-----------
[iOS] Fix crash in ProcessThrottler::sendPrepareToSuspendIPC
https://bugs.webkit.org/show_bug.cgi?id=249220
rdar://103276264
Reviewed by Chris Dumez.
After 257628 at main we call `ProcessThrottler::updateThrottleStateIfNeeded`
every time we call `ProcessThrottler::setShouldTakeSuspendedAssertion`.
Instead, we should only take or drop the Suspended assertion when actually
needed in `ProcessThrottler::setShouldTakeSuspendedAssertion`.
* Source/WebKit/UIProcess/ProcessThrottler.cpp:
(WebKit::ProcessThrottler::setShouldTakeSuspendedAssertion):
Canonical link: https://commits.webkit.org/257850@main
More information about the webkit-changes
mailing list