mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb+WebWorker: Create SharedWorkerGlobalScope for Shared Workers
Also push the onconnect event for the initial connection. This still doesn't properly handle sending an onconnect event to a pre-existing SharedWorkerGlobalScope with the same name for the same origin, but it does give us a lot of WPT passes in the SharedWorker category.
This commit is contained in:
parent
978a3b7321
commit
4d039fc3d4
Notes:
github-actions[bot]
2025-05-18 23:51:04 +00:00
Author: https://github.com/ADKaster
Commit: 4d039fc3d4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4806
Reviewed-by: https://github.com/shannonbooth
Reviewed-by: https://github.com/trflynn89
11 changed files with 88 additions and 39 deletions
|
@ -1,12 +1,19 @@
|
|||
#include <LibURL/URL.h>
|
||||
#include <LibIPC/File.h>
|
||||
#include <LibWeb/Bindings/AgentType.h>
|
||||
#include <LibWeb/Bindings/WorkerPrototype.h>
|
||||
#include <LibWeb/HTML/StructuredSerialize.h>
|
||||
#include <LibWeb/HTML/Scripting/SerializedEnvironmentSettingsObject.h>
|
||||
#include <LibWeb/Bindings/WorkerPrototype.h>
|
||||
|
||||
endpoint WebWorkerServer {
|
||||
|
||||
start_dedicated_worker(URL::URL url, Web::Bindings::WorkerType type, Web::Bindings::RequestCredentials credentials, String name, Web::HTML::TransferDataHolder message_port, Web::HTML::SerializedEnvironmentSettingsObject outside_settings) =|
|
||||
start_worker(URL::URL url,
|
||||
Web::Bindings::WorkerType type,
|
||||
Web::Bindings::RequestCredentials credentials,
|
||||
String name,
|
||||
Web::HTML::TransferDataHolder message_port,
|
||||
Web::HTML::SerializedEnvironmentSettingsObject outside_settings,
|
||||
Web::Bindings::AgentType agent_type) =|
|
||||
|
||||
close_worker() =|
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue