LibWeb: Implement DedicatedWorkerGlobalScope postMessage(msg, transfer)

Unfortunately the added test (which passes locally) is skipped as it is
based off other Worker tests which are also skipped due to being flakey
in CI.
This commit is contained in:
Shannon Booth 2024-10-28 20:14:18 +13:00 committed by Andreas Kling
commit 755b63132b
Notes: github-actions[bot] 2024-10-28 22:33:18 +00:00
6 changed files with 43 additions and 2 deletions

View file

@ -26,6 +26,7 @@ public:
virtual ~DedicatedWorkerGlobalScope() override;
WebIDL::ExceptionOr<void> post_message(JS::Value message, StructuredSerializeOptions const&);
WebIDL::ExceptionOr<void> post_message(JS::Value message, Vector<JS::Handle<JS::Object>> const& transfer);
void set_name(String name) { m_name = move(name); }
String name() const { return m_name; }