Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 975fa073536d1394834c2ed2bde0a737761ecd34
      
https://github.com/WebKit/WebKit/commit/975fa073536d1394834c2ed2bde0a737761ecd34
  Author: Youenn Fablet <[email protected]>
  Date:   2024-08-28 (Wed, 28 Aug 2024)

  Changed paths:
    M Source/WebKit/UIProcess/WebPageProxy.cpp
    M Source/WebKit/UIProcess/WebPageProxy.h

  Log Message:
  -----------
  Take a background assertion for processes having muted capture
rdar://130691389
https://bugs.webkit.org/show_bug.cgi?id=278560

Reviewed by Chris Dumez.

When a process has muted capture, it may get quickly suspended.
This for instance happens when switching to another tab in Safari.
This also happens for any WKWebView application that will go to the background, 
even though the WKWebView application may not get suspended.

We now take a background assertion for any web process that has muted capture.
This will ensure that the web process does not get suspended, as long as the 
UIProcess is not suspended.
This assertion will not delay UIProcess suspension, contrary to the past 
incarnation of this patch.

Manually tested by observing that a WebRTC connection continues sending black 
frames in a backgrounded tab on iOS.

* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::updateThrottleState):
* Source/WebKit/UIProcess/WebPageProxy.h:

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to