mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
LibWeb: Implement cookie fetching for Workers
Allows formulas to update on Google Sheets, which uses a Worker to update them and makes cookie authenticated requests, which was failing before this commit. This has the limitation that it has to proxy through the WebContent process, but that's how the current infrastructure is, which is outside the scope of this commit.
This commit is contained in:
committed by
Alexander Kalenik
parent
05438e70f1
commit
6d3fd2b543
Notes:
github-actions[bot]
2025-09-09 13:29:33 +00:00
Author: https://github.com/Lubrsi Commit: https://github.com/LadybirdBrowser/ladybird/commit/6d3fd2b5437 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6116
@@ -77,6 +77,11 @@ Web::CSS::PreferredMotion PageHost::preferred_motion() const
|
||||
return Web::CSS::PreferredMotion::Auto;
|
||||
}
|
||||
|
||||
String PageHost::page_did_request_cookie(URL::URL const& url, Web::Cookie::Source source)
|
||||
{
|
||||
return m_client.did_request_cookie(url, source);
|
||||
}
|
||||
|
||||
void PageHost::request_file(Web::FileRequest request)
|
||||
{
|
||||
m_client.request_file(move(request));
|
||||
|
||||
@@ -32,6 +32,7 @@ public:
|
||||
virtual Web::CSS::PreferredColorScheme preferred_color_scheme() const override;
|
||||
virtual Web::CSS::PreferredContrast preferred_contrast() const override;
|
||||
virtual Web::CSS::PreferredMotion preferred_motion() const override;
|
||||
virtual String page_did_request_cookie(URL::URL const&, Web::Cookie::Source) override;
|
||||
virtual void request_file(Web::FileRequest) override;
|
||||
virtual Web::DisplayListPlayerType display_list_player_type() const override { VERIFY_NOT_REACHED(); }
|
||||
virtual bool is_headless() const override { VERIFY_NOT_REACHED(); }
|
||||
|
||||
Reference in New Issue
Block a user