LibWeb/Fetch: Replace usages of AbortSignal::follow() in Fetch::Request

Since the introduction of `AbortSignal::any()`, the specification says
`AbortSignal::create_dependent_abort_signal()` should be used where
`AbortSignal::follow` was previously.
This commit is contained in:
Tim Ledbetter 2024-03-26 07:45:11 +00:00 committed by Andreas Kling
commit 17e64cf08b
Notes: sideshowbarker 2024-07-17 05:21:12 +09:00
3 changed files with 36 additions and 29 deletions

View file

@ -67,7 +67,7 @@ class Request final
JS_DECLARE_ALLOCATOR(Request);
public:
[[nodiscard]] static JS::NonnullGCPtr<Request> create(JS::Realm&, JS::NonnullGCPtr<Infrastructure::Request>, Headers::Guard);
[[nodiscard]] static JS::NonnullGCPtr<Request> create(JS::Realm&, JS::NonnullGCPtr<Infrastructure::Request>, Headers::Guard, JS::NonnullGCPtr<DOM::AbortSignal>);
static WebIDL::ExceptionOr<JS::NonnullGCPtr<Request>> construct_impl(JS::Realm&, RequestInfo const& input, RequestInit const& init = {});
virtual ~Request() override;