mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-01 16:58:52 +00:00
LibWeb/HTML: Rename WorkerAgent to WorkerAgentParent
This is to differentiate the agent representation for the parent process for the WorkerAgent in the child process which is actually hooked up to the javascript VM. I am not sure if this is a good name, but I can't really think of anything better which is consistent with the names used by the rest of the codebase.
This commit is contained in:
parent
2fc1cafb8a
commit
939bb10828
Notes:
github-actions[bot]
2025-04-25 14:46:02 +00:00
Author: https://github.com/shannonbooth
Commit: 939bb10828
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4453
6 changed files with 17 additions and 16 deletions
|
@ -110,7 +110,7 @@ void Worker::run_a_worker(URL::URL& url, EnvironmentSettingsObject& outside_sett
|
|||
// and is shared. Run the rest of these steps in that agent.
|
||||
|
||||
// Note: This spawns a new process to act as the 'agent' for the worker.
|
||||
m_agent = outside_settings.realm().create<WorkerAgent>(url, options, port, outside_settings);
|
||||
m_agent = outside_settings.realm().create<WorkerAgentParent>(url, options, port, outside_settings);
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/workers.html#dom-worker-terminate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue