mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 04:08:08 +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:
committed by
Andreas Kling
parent
652dde5022
commit
44d6601dc5
@@ -126,11 +126,6 @@ WebContentView::WebContentView(QWidget* window, RefPtr<WebView::WebContentClient
|
||||
finish_handling_drag_event(event);
|
||||
};
|
||||
|
||||
on_request_worker_agent = [&]() {
|
||||
auto worker_client = MUST(WebView::launch_web_worker_process());
|
||||
return worker_client->clone_transport();
|
||||
};
|
||||
|
||||
m_select_dropdown = new QMenu("Select Dropdown", this);
|
||||
QObject::connect(m_select_dropdown, &QMenu::aboutToHide, this, [this]() {
|
||||
if (!m_select_dropdown->activeAction())
|
||||
|
||||
Reference in New Issue
Block a user