Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e8320555bf3a0f6cf4fe339a8fa20210949f4e47
https://github.com/WebKit/WebKit/commit/e8320555bf3a0f6cf4fe339a8fa20210949f4e47
Author: Sam Weinig <[email protected]>
Date: 2026-01-22 (Thu, 22 Jan 2026)
Changed paths:
M Source/WebCore/Modules/streams/UnderlyingSourceCancelCallback.h
M Source/WebCore/Modules/streams/UnderlyingSourcePullCallback.h
M Source/WebCore/Modules/web-locks/WebLockGrantedCallback.h
M Source/WebCore/Modules/web-locks/WebLockManager.cpp
M Source/WebCore/Modules/webaudio/AudioWorkletProcessorConstructor.h
M Source/WebCore/WebCore.xcodeproj/project.pbxproj
M Source/WebCore/bindings/IDLTypes.h
M Source/WebCore/dom/CallbackResult.h
M Source/WebCore/dom/ViewTransition.cpp
M Source/WebCore/dom/ViewTransitionUpdateCallback.h
M Source/WebCore/page/Navigation.cpp
M Source/WebCore/page/NavigationInterceptHandler.h
M Source/WebCore/testing/MockCaptionDisplaySettingsClientCallback.h
Log Message:
-----------
Support using Ref for IDLInterfaces in IDL callback return types
https://bugs.webkit.org/show_bug.cgi?id=305412
rdar://168524228
Reviewed by Darin Adler and Chris Dumez.
Switches to using Ref for non-nullable callback return values of
IDL wrappers, including interfaces and promises.
* Source/WebCore/bindings/IDLTypes.h:
- Update aliases to use Ref for non-nullable and RefPtr
for nullable.
* Source/WebCore/dom/CallbackResult.h:
- Add non-releasing `returnValue()` function (mirroring the API of
`ConversionResult`).
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
- Add some missing derived sources that I needed to look at while
making this change.
* Source/WebCore/Modules/streams/UnderlyingSourceCancelCallback.h:
* Source/WebCore/Modules/streams/UnderlyingSourcePullCallback.h:
* Source/WebCore/Modules/web-locks/WebLockGrantedCallback.h:
* Source/WebCore/Modules/web-locks/WebLockManager.cpp:
* Source/WebCore/Modules/webaudio/AudioWorkletProcessorConstructor.h:
* Source/WebCore/dom/ViewTransition.cpp:
* Source/WebCore/dom/ViewTransitionUpdateCallback.h:
* Source/WebCore/page/Navigation.cpp:
* Source/WebCore/page/NavigationInterceptHandler.h:
* Source/WebCore/testing/MockCaptionDisplaySettingsClientCallback.h:
- Update to use Ref instead of RefPtr.
Canonical link: https://commits.webkit.org/306025@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications