mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibWebView+UI: Acquire the paths to helper processes inside LibWebView
We no longer need to acquire these paths from the UI and pass them into LibWebView - we can figure out these paths internally.
This commit is contained in:
committed by
Andreas Kling
parent
bb7dff7dfe
commit
652dde5022
@@ -16,7 +16,6 @@
|
||||
#include <LibWebView/SearchEngine.h>
|
||||
#include <LibWebView/SourceHighlighter.h>
|
||||
#include <LibWebView/URL.h>
|
||||
#include <LibWebView/Utilities.h>
|
||||
|
||||
#import <Application/Application.h>
|
||||
#import <Application/ApplicationDelegate.h>
|
||||
@@ -347,7 +346,7 @@ static void copy_data_to_clipboard(StringView data, NSPasteboardType pasteboard_
|
||||
};
|
||||
|
||||
m_web_view_bridge->on_request_worker_agent = []() {
|
||||
auto worker_client = MUST(WebView::launch_web_worker_process(MUST(WebView::get_paths_for_helper_process("WebWorker"sv))));
|
||||
auto worker_client = MUST(WebView::launch_web_worker_process());
|
||||
return worker_client->clone_transport();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user