mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 02:59:45 +00:00
LibWeb: Append fetch record to client's fetch group when request is a
...subresource.
This commit is contained in:
parent
e36607bdba
commit
a744a9ebe7
Notes:
github-actions[bot]
2024-07-26 08:23:09 +00:00
Author: https://github.com/kennethmyhra
Commit: a744a9ebe7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/770
1 changed files with 5 additions and 2 deletions
|
@ -249,8 +249,11 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<Infrastructure::FetchController>> fetch(JS:
|
||||||
|
|
||||||
// 16. If request is a subresource request, then:
|
// 16. If request is a subresource request, then:
|
||||||
if (request.is_subresource_request()) {
|
if (request.is_subresource_request()) {
|
||||||
// FIXME: 1. Let record be a new fetch record whose request is request and controller is fetchParams’s controller.
|
// 1. Let record be a new fetch record whose request is request and controller is fetchParams’s controller.
|
||||||
// FIXME: 2. Append record to request’s client’s fetch group list of fetch records.
|
auto record = Infrastructure::FetchRecord::create(vm, request, fetch_params->controller());
|
||||||
|
|
||||||
|
// 2. Append record to request’s client’s fetch group list of fetch records.
|
||||||
|
request.client()->fetch_group().append(record);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 17. Run main fetch given fetchParams.
|
// 17. Run main fetch given fetchParams.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue