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

@ -28,9 +28,6 @@ public:
WebIDL::ExceptionOr<void> post_message(JS::Value message, StructuredSerializeOptions const&);
WebIDL::ExceptionOr<void> post_message(JS::Value message, Vector<GC::Root<JS::Object>> const& transfer);
void set_name(String name) { m_name = move(name); }
String name() const { return m_name; }
void close();
#undef __ENUMERATE
@ -46,8 +43,6 @@ private:
DedicatedWorkerGlobalScope(JS::Realm&, GC::Ref<Web::Page>);
virtual void initialize_web_interfaces_impl() override;
String m_name;
};
}