Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a97fb762a2d2d16e56a8da3d6a39f0cb146b09ca
https://github.com/WebKit/WebKit/commit/a97fb762a2d2d16e56a8da3d6a39f0cb146b09ca
Author: Ryosuke Niwa <[email protected]>
Date: 2025-10-31 (Fri, 31 Oct 2025)
Changed paths:
M Source/WebCore/Modules/fetch/FetchBody.cpp
M Source/WebCore/Modules/fetch/FetchBody.h
M Source/WebCore/Modules/fetch/FetchBodyConsumer.cpp
M Source/WebCore/Modules/fetch/FetchBodyConsumer.h
Log Message:
-----------
Always allocate FetchBodyConsumer in heap
https://bugs.webkit.org/show_bug.cgi?id=301557
Reviewed by Geoffrey Garen.
Always allocate in FetchBodyConsumer in heap so that operator delete will be
used for its destruction.
No new tests since there should be no behavioral difference.
* Source/WebCore/Modules/fetch/FetchBody.cpp:
(WebCore::FetchBody::arrayBuffer):
(WebCore::FetchBody::blob):
(WebCore::FetchBody::bytes):
(WebCore::FetchBody::json):
(WebCore::FetchBody::text):
(WebCore::FetchBody::formData):
(WebCore::FetchBody::consumeOnceLoadingFinished):
(WebCore::FetchBody::consume):
(WebCore::FetchBody::consumeAsStream):
(WebCore::FetchBody::consumeArrayBuffer):
(WebCore::FetchBody::consumeArrayBufferView):
(WebCore::FetchBody::consumeText):
(WebCore::FetchBody::consumeBlob):
(WebCore::FetchBody::consumeFormData):
(WebCore::FetchBody::loadingFailed):
(WebCore::FetchBody::loadingSucceeded):
(WebCore::FetchBody::bodyAsFormData const):
(WebCore::FetchBody::take):
(WebCore::FetchBody::consumer):
(WebCore::FetchBody::clone):
* Source/WebCore/Modules/fetch/FetchBody.h:
(WebCore::FetchBody::cleanConsumer):
(WebCore::FetchBody::hasConsumerPendingActivity const):
(WebCore::FetchBody::FetchBody):
(WebCore::FetchBody::consumer): Deleted.
* Source/WebCore/Modules/fetch/FetchBodyConsumer.cpp:
(WebCore::FetchBodyConsumer::clone):
* Source/WebCore/Modules/fetch/FetchBodyConsumer.h:
Canonical link: https://commits.webkit.org/302415@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications