WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
240677
Need to keep the document alive in KeyframeEffect::processKeyframes()
https://bugs.webkit.org/show_bug.cgi?id=240677
Summary
Need to keep the document alive in KeyframeEffect::processKeyframes()
Antoine Quint
Reported
2022-05-19 11:32:48 PDT
Since we use the provided Document in KeyframeEffect::processKeyframes() and it's just a reference, we should ensure it's kept alive while this method is called.
Attachments
Add attachment
proposed patch, testcase, etc.
Antoine Quint
Comment 1
2022-05-19 11:33:04 PDT
rdar://93513759
Antoine Quint
Comment 2
2022-05-19 11:41:15 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/796
Antoine Quint
Comment 3
2022-05-19 11:42:53 PDT
Landed
https://commits.webkit.org/250756@main
(
r294497
)!
Darin Adler
Comment 4
2022-05-19 12:48:45 PDT
We are really going to have to discuss this as a team. Our overall strategy was supposed to be that callers have to ref/deref things, not that functions must protect the things they are passed. So the caller is supposed to ref/deref the document, not the processKeyframes function. But maybe that strategy is impractical, since even a Node's document is not ref'd if the Node is moved to another document? If we do need to "protect" things then we need a discipline for knowing when it’s needed.
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