LibWeb: Implement FetchController::abort()

This commit is contained in:
Kenneth Myhra 2024-11-22 12:30:16 +01:00 committed by Andreas Kling
parent 4c5019f89c
commit 968c38e54f
Notes: github-actions[bot] 2024-11-24 10:12:37 +00:00
4 changed files with 34 additions and 4 deletions

View file

@ -16,6 +16,7 @@
#include <LibWeb/Fetch/Infrastructure/FetchTimingInfo.h>
#include <LibWeb/Forward.h>
#include <LibWeb/HTML/EventLoop/Task.h>
#include <LibWeb/HTML/StructuredSerialize.h>
namespace Web::Fetch::Infrastructure {
@ -74,8 +75,9 @@ private:
GC::Ptr<GC::Function<void(JS::Object const&)>> m_report_timing_steps;
// https://fetch.spec.whatwg.org/#fetch-controller-report-timing-steps
// FIXME: serialized abort reason (default null)
// serialized abort reason (default null)
// Null or a Record (result of StructuredSerialize).
HTML::SerializationRecord m_serialized_abort_reason;
// https://fetch.spec.whatwg.org/#fetch-controller-next-manual-redirect-steps
// next manual redirect steps (default null)