Ladybird+LibWeb+WebContent: Port the did_request_cookie IPC to String

This commit is contained in:
Timothy Flynn 2024-01-26 11:10:15 -05:00 committed by Andreas Kling
parent dcd9962d7b
commit 85b8971a80
Notes: sideshowbarker 2024-07-17 14:33:07 +09:00
14 changed files with 16 additions and 16 deletions

View file

@ -1431,7 +1431,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<PendingResponse>> http_network_or_cache_fet
// FIXME: Getting to the page client reliably is way too complicated, and going via the document won't work in workers.
auto document = Bindings::host_defined_environment_settings_object(realm).responsible_document();
if (!document)
return ByteString::empty();
return String {};
return document->page().client().page_did_request_cookie(http_request->current_url(), Cookie::Source::Http);
})();