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
300560
Adopt LIFETIME_BOUND for WTF::Ref
https://bugs.webkit.org/show_bug.cgi?id=300560
Summary
Adopt LIFETIME_BOUND for WTF::Ref
David Kilzer (:ddkilzer)
Reported
2025-10-11 13:49:10 PDT
Adopt LIFETIME_BOUND for WTF::Ref. We add the attribute to methods returning raw pointers or references, and introduce unsafeGet() and unsafePtr(). This prevents new, unsafe uses of get() and ptr() since that will trigger a warning-as-error, and lets us burn down uses of unsafeGet() and unsafePtr().
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2025-10-11 13:49:27 PDT
<
rdar://problem/162444456
>
David Kilzer (:ddkilzer)
Comment 2
2025-10-11 14:47:43 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/52181
EWS
Comment 3
2025-10-12 13:40:10 PDT
Committed
301385@main
(29dee3888647): <
https://commits.webkit.org/301385@main
> Reviewed commits have been landed. Closing PR #52181 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