mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +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
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue