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:
Andrew Kaster 2025-05-18 14:04:29 -06:00 committed by Andrew Kaster
parent cef9564728
commit b10a98b0cb
Notes: github-actions[bot] 2025-05-18 23:51:28 +00:00
4 changed files with 13 additions and 17 deletions

View file

@ -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);
}