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:
Luke Wilde
2025-09-07 15:32:43 +01:00
committed by Alexander Kalenik
parent 05438e70f1
commit 6d3fd2b543
Notes: github-actions[bot] 2025-09-09 13:29:33 +00:00
7 changed files with 32 additions and 0 deletions

View File

@@ -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));

View File

@@ -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(); }