LibWeb: Remove ability to override MessagePort's primary interface
Some checks are pending
CI / macOS, arm64, Sanitizer, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer, Clang (push) Waiting to run
Package the js repl as a binary artifact / Linux, arm64 (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run

This hack no longer has any users.
This commit is contained in:
Timothy Flynn 2025-07-17 09:52:25 -04:00 committed by Tim Flynn
parent d471b52b0e
commit f6f31fe215
Notes: github-actions[bot] 2025-07-18 14:10:23 +00:00
2 changed files with 6 additions and 9 deletions

View file

@ -38,14 +38,13 @@ static HashTable<GC::RawPtr<MessagePort>>& all_message_ports()
return ports;
}
GC::Ref<MessagePort> MessagePort::create(JS::Realm& realm, HTML::TransferType primary_interface)
GC::Ref<MessagePort> MessagePort::create(JS::Realm& realm)
{
return realm.create<MessagePort>(realm, primary_interface);
return realm.create<MessagePort>(realm);
}
MessagePort::MessagePort(JS::Realm& realm, HTML::TransferType primary_interface)
MessagePort::MessagePort(JS::Realm& realm)
: DOM::EventTarget(realm)
, m_primary_interface(primary_interface)
{
all_message_ports().set(this);
}