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
300201
Adopt LIFETIME_BOUND for WTF::RefPtr
https://bugs.webkit.org/show_bug.cgi?id=300201
Summary
Adopt LIFETIME_BOUND for WTF::RefPtr
David Kilzer (:ddkilzer)
Reported
2025-10-05 17:17:12 PDT
Adopt LIFETIME_BOUND for WTF::RefPtr. We add the attribute to get(), operator*() and operator->(), and introduce unsafeGet(). This prevents new, unsafe uses of get() since that will trigger a warning-as-error, and lets us burn down uses of unsafeGet().
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2025-10-05 17:18:45 PDT
<
rdar://problem/162003473
>
David Kilzer (:ddkilzer)
Comment 2
2025-10-05 17:28:27 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/51839
EWS
Comment 3
2025-10-06 10:48:34 PDT
Committed
301069@main
(74dea8980fbd): <
https://commits.webkit.org/301069@main
> Reviewed commits have been landed. Closing PR #51839 and removing active labels.
WebKit Commit Bot
Comment 4
2025-10-06 15:38:46 PDT
Re-opened since this is blocked by
bug 300268
David Kilzer (:ddkilzer)
Comment 5
2025-10-10 08:39:24 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/52122
EWS
Comment 6
2025-10-10 10:43:37 PDT
Committed
301319@main
(6773b6cba030): <
https://commits.webkit.org/301319@main
> Reviewed commits have been landed. Closing PR #52122 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