Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 112967a3c973c63c1bc702ee534c24b6b3090cbe
https://github.com/WebKit/WebKit/commit/112967a3c973c63c1bc702ee534c24b6b3090cbe
Author: David Kilzer <[email protected]>
Date: 2026-04-15 (Wed, 15 Apr 2026)
Changed paths:
M Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp
Log Message:
-----------
WebKitTestRunner leaks WKTypeRef out-parameter value from
WKBundlePagePostSynchronousMessageForTesting()
<https://bugs.webkit.org/show_bug.cgi?id=312296>
<rdar://174764247>
Reviewed by Charlie Wolfe.
Adopt the +1 retained `WKTypeRef` returned via the out-parameter of
`WKBundlePagePostSynchronousMessageForTesting()`. The C API
implementation uses `toAPILeakingRef()` to transfer ownership to
the caller, but seven callers in `InjectedBundle.cpp` never adopt
or release the result.
* Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
(WTR::InjectedBundle::shouldForceRepaint const):
(WTR::InjectedBundle::getBackgroundFetchIdentifier):
(WTR::InjectedBundle::isPrinting const):
(WTR::InjectedBundle::lastAddedBackgroundFetchIdentifier const):
(WTR::InjectedBundle::lastRemovedBackgroundFetchIdentifier const):
(WTR::InjectedBundle::lastUpdatedBackgroundFetchIdentifier const):
(WTR::InjectedBundle::backgroundFetchState):
Canonical link: https://commits.webkit.org/311347@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications