mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibHTTP+Everywhere: Move the cookie implementation to LibHTTP
This will allow parsing cookies outside of LibWeb. LibHTTP is basically becoming the home of HTTP WG specs.
This commit is contained in:
committed by
Andreas Kling
parent
0a334f50db
commit
8d97389038
Notes:
github-actions[bot]
2026-02-10 11:23:01 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/8d973890389 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7847
@@ -204,7 +204,7 @@ ErrorOr<void> WebSocket::establish_web_socket_connection(URL::URL const& url_rec
|
||||
|
||||
auto cookies = ([&] {
|
||||
auto& page = Bindings::principal_host_defined_page(HTML::principal_realm(realm()));
|
||||
return page.client().page_did_request_cookie(url_record, Cookie::Source::Http).cookie;
|
||||
return page.client().page_did_request_cookie(url_record, HTTP::Cookie::Source::Http).cookie;
|
||||
})();
|
||||
|
||||
if (!cookies.is_empty()) {
|
||||
|
||||
Reference in New Issue
Block a user