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
308686
JSNativeStdFunction should be able to safely capture
https://bugs.webkit.org/show_bug.cgi?id=308686
Summary
JSNativeStdFunction should be able to safely capture
Kai Tamkun
Reported
2026-02-25 17:07:01 PST
Currently, there's no way to safely keep the captures of lambdas passed to JSNativeStdFunction::create alive other than use of Strong, which has its own problems. If JSNativeStdFunction kept a FixedVector of WriteBarriers to captured values, it could keep them alive at least as long as the JSNativeStdFunction is alive without Strong cycle issues.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2026-02-25 17:07:30 PST
<
rdar://problem/171220159
>
Kai Tamkun
Comment 2
2026-02-25 17:10:18 PST
Pull request:
https://github.com/WebKit/WebKit/pull/59467
EWS
Comment 3
2026-03-02 10:11:18 PST
Committed
308472@main
(8ed6b76ec394): <
https://commits.webkit.org/308472@main
> Reviewed commits have been landed. Closing PR #59467 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