Bug 243393 - track videos playing within the viewport when computing ActivityState::IsVisuallyIdle
Summary: track videos playing within the viewport when computing ActivityState::IsVisu...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Cameron McCormack (:heycam)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-07-31 21:15 PDT by Cameron McCormack (:heycam)
Modified: 2022-08-02 00:59 PDT (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 Cameron McCormack (:heycam) 2022-07-31 21:15:56 PDT
ActivityState::IsVisuallyIdle on Cocoa platforms uses notifications from the window server to determine whether there have been no updates to the window recently.  DOM timers are throttled when the IsVisuallyIdle ActivityState bit is present.  Certain videos do not cause the window server to consider the window as being updated, and so we can end up being IsVisuallyIdle despite the window updating, and throttling timers unexpectedly.
Comment 1 Radar WebKit Bug Importer 2022-07-31 21:16:08 PDT
<rdar://problem/97890582>
Comment 2 Cameron McCormack (:heycam) 2022-07-31 21:30:31 PDT
Pull request: https://github.com/WebKit/WebKit/pull/2891
Comment 3 EWS 2022-08-02 00:59:51 PDT
Committed 253027@main (033dfee4f975): <https://commits.webkit.org/253027@main>

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