WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
295704
Unnecessary calls to hasAvailableFrameCallback
https://bugs.webkit.org/show_bug.cgi?id=295704
Summary
Unnecessary calls to hasAvailableFrameCallback
Jean-Yves Avenard [:jya]
Reported
2025-07-10 05:41:06 PDT
Currently, hasAvailableFrameCallback is called whenever we render a frame on screen with no exception. This callback is used for two purposes: 1- Let the MediaPlayerPrivate knows that the first frame has been decoded and rendered 2- When gathering frame metadata due to a call to requestVideoFrameCallback 1- is only required once after a flush 2- is only required if the JS has used requestVideoFrameCallback API. We could optimise the code to only call hasAvailableFrameCallback when needed only.
Attachments
Add attachment
proposed patch, testcase, etc.
Jean-Yves Avenard [:jya]
Comment 1
2025-07-10 06:02:10 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/47820
Jean-Yves Avenard [:jya]
Comment 2
2025-07-10 06:04:19 PDT
rdar://155519872
EWS
Comment 3
2025-07-14 03:51:15 PDT
Committed
297330@main
(d392a868cc16): <
https://commits.webkit.org/297330@main
> Reviewed commits have been landed. Closing PR #47820 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug