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
305822
Allow constructing a Ref / RefPtr from a WeakRef / WeakPtr
https://bugs.webkit.org/show_bug.cgi?id=305822
Summary
Allow constructing a Ref / RefPtr from a WeakRef / WeakPtr
Chris Dumez
Reported
2026-01-20 01:56:29 PST
Allow constructing a Ref / RefPtr from a WeakRef / WeakPtr, without requiring calling `.get()`. Also allow silencing converting a WeakPtr<T> to a T* for consistency with other smart pointer types. Also simplify code in Source/WebKit/ as a result. If this is approved, I'll simplify the rest of the codebase.
Attachments
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2026-01-20 01:57:48 PST
Pull request:
https://github.com/WebKit/WebKit/pull/56884
EWS
Comment 2
2026-01-20 14:41:56 PST
Committed
305907@main
(0a2324667740): <
https://commits.webkit.org/305907@main
> Reviewed commits have been landed. Closing PR #56884 and removing active labels.
Radar WebKit Bug Importer
Comment 3
2026-01-20 14:42:16 PST
<
rdar://problem/168537907
>
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