mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 14:43:01 +02:00
This commit provides IPC endpoint to WebWorker processes that allows new WebWorker processes to be requested (just like what WebContent has). This is implemented by proxying the request_worker_agent call from WebWorker through WebContent to LibWebView. This allows the WPT test... http://wpt.live/referrer-policy/gen/worker-classic.http-rp/unsafe-url/worker-classic.http.html ...to pass, and the same is likely true for similar tests.
10 lines
322 B
Plaintext
10 lines
322 B
Plaintext
#include <LibURL/URL.h>
|
|
#include <LibWeb/Cookie/Cookie.h>
|
|
#include <LibWeb/Bindings/AgentType.h>
|
|
|
|
endpoint WebWorkerClient {
|
|
did_close_worker() =|
|
|
did_request_cookie(URL::URL url, Web::Cookie::Source source) => (String cookie)
|
|
request_worker_agent(Web::Bindings::AgentType worker_type) => (IPC::File socket)
|
|
}
|