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:
Shannon Booth 2025-04-24 14:08:39 +12:00 committed by Andreas Kling
parent 2fc1cafb8a
commit 939bb10828
Notes: github-actions[bot] 2025-04-25 14:46:02 +00:00
6 changed files with 17 additions and 16 deletions

View file

@ -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