LibWeb: Append fetch record to client's fetch group when request is a

...subresource.
This commit is contained in:
Kenneth Myhra 2024-07-22 20:46:39 +02:00 committed by Andreas Kling
commit a744a9ebe7
Notes: github-actions[bot] 2024-07-26 08:23:09 +00:00

View file

@ -249,8 +249,11 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<Infrastructure::FetchController>> fetch(JS:
// 16. If request is a subresource request, then:
if (request.is_subresource_request()) {
// FIXME: 1. Let record be a new fetch record whose request is request and controller is fetchParamss controller.
// FIXME: 2. Append record to requests clients fetch group list of fetch records.
// 1. Let record be a new fetch record whose request is request and controller is fetchParamss controller.
auto record = Infrastructure::FetchRecord::create(vm, request, fetch_params->controller());
// 2. Append record to requests clients fetch group list of fetch records.
request.client()->fetch_group().append(record);
}
// 17. Run main fetch given fetchParams.