mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 17:19:13 +00:00
LibWebView+UI: Handle worker agent requests from within LibWebView
There is no longer any UI-specific facilities needed to launch a worker agent.
This commit is contained in:
parent
652dde5022
commit
44d6601dc5
Notes:
github-actions[bot]
2024-11-14 10:48:29 +00:00
Author: https://github.com/trflynn89
Commit: 44d6601dc5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2327
5 changed files with 3 additions and 19 deletions
|
@ -30,11 +30,6 @@ HeadlessWebView::HeadlessWebView(Core::AnonymousBuffer theme, Web::DevicePixelSi
|
|||
return web_view.handle();
|
||||
};
|
||||
|
||||
on_request_worker_agent = []() {
|
||||
auto worker_client = MUST(WebView::launch_web_worker_process());
|
||||
return worker_client->clone_transport();
|
||||
};
|
||||
|
||||
on_reposition_window = [this](auto position) {
|
||||
client().async_set_window_position(m_client_state.page_index, position.template to_type<Web::DevicePixels>());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue