mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
LibWeb: Fire unhandled dedicated worker exceptions on the parent global
When a dedicated worker has an unhandled exception, we should propogate that exception to be fired at the parent global. Fixes a timeout in the included WPT test.
This commit is contained in:
committed by
Shannon Booth
parent
e15b1a33cb
commit
a2e735b94c
Notes:
github-actions[bot]
2026-04-05 21:39:29 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/a2e735b94c8 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8794
@@ -92,6 +92,11 @@ HTTP::Cookie::VersionedCookie PageHost::page_did_request_cookie(URL::URL const&
|
||||
return m_client.did_request_cookie(url, source);
|
||||
}
|
||||
|
||||
void PageHost::page_did_report_worker_exception(String const& message, String const& filename, u32 lineno, u32 colno)
|
||||
{
|
||||
m_client.async_did_report_worker_exception(message, filename, lineno, colno);
|
||||
}
|
||||
|
||||
void PageHost::request_file(Web::FileRequest request)
|
||||
{
|
||||
m_client.request_file(move(request));
|
||||
|
||||
@@ -37,6 +37,7 @@ public:
|
||||
virtual Web::CSS::PreferredMotion preferred_motion() const override;
|
||||
virtual size_t screen_count() const override { return 1; }
|
||||
virtual HTTP::Cookie::VersionedCookie page_did_request_cookie(URL::URL const&, HTTP::Cookie::Source) override;
|
||||
virtual void page_did_report_worker_exception(String const& message, String const& filename, u32 lineno, u32 colno) override;
|
||||
virtual void request_file(Web::FileRequest) override;
|
||||
virtual WorkerAgentResponse request_worker_agent(Web::Bindings::AgentType) override;
|
||||
virtual Web::DisplayListPlayerType display_list_player_type() const override { VERIFY_NOT_REACHED(); }
|
||||
|
||||
Reference in New Issue
Block a user