Bug 252618 - [Cocoa] Many redundant calls to WebProcessProxy::didChangeThrottleState
Summary: [Cocoa] Many redundant calls to WebProcessProxy::didChangeThrottleState
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Process Model (show other bugs)
Version: WebKit Nightly Build
Hardware: iPhone / iPad iOS 16
: P2 Normal
Assignee: Miguel Salinas
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-02-20 14:51 PST by Miguel Salinas
Modified: 2023-02-20 19:20 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miguel Salinas 2023-02-20 14:51:34 PST
ProcessThrottler is calling WebProcessProxy::didChangeThrottleState redundantly with the same throttle state. This is happening many times for at least one user. We should not call WebProcessProxy::didChangeThrottleState if the state is not actually changing.
Comment 1 Miguel Salinas 2023-02-20 15:04:47 PST
Pull request: https://github.com/WebKit/WebKit/pull/10404
Comment 2 EWS 2023-02-20 19:20:27 PST
Committed 260583@main (3af1290ef050): <https://commits.webkit.org/260583@main>

Reviewed commits have been landed. Closing PR #10404 and removing active labels.