RESOLVED FIXED305822
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
Chris Dumez
Comment 1 2026-01-20 01:57:48 PST
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
Note You need to log in before you can comment on or make changes to this bug.