mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-08 18:11:52 +00:00
LibWeb: Move name attribute to WorkerGlobalScope from subclasses
Also refactor the other properties of WorkerGlobalScope to match the spec better.
This commit is contained in:
parent
cef9564728
commit
b10a98b0cb
Notes:
github-actions[bot]
2025-05-18 23:51:28 +00:00
Author: https://github.com/ADKaster
Commit: b10a98b0cb
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4806
Reviewed-by: https://github.com/shannonbooth
Reviewed-by: https://github.com/trflynn89
4 changed files with 13 additions and 17 deletions
|
@ -18,9 +18,8 @@ HashTable<GC::RawRef<SharedWorkerGlobalScope>>& all_shared_worker_global_scopes(
|
|||
return set;
|
||||
}
|
||||
|
||||
SharedWorkerGlobalScope::SharedWorkerGlobalScope(JS::Realm& realm, GC::Ref<Web::Page> page, String name)
|
||||
SharedWorkerGlobalScope::SharedWorkerGlobalScope(JS::Realm& realm, GC::Ref<Web::Page> page)
|
||||
: WorkerGlobalScope(realm, page)
|
||||
, m_name(move(name))
|
||||
{
|
||||
all_shared_worker_global_scopes().set(*this);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue