Commit 2f6e494
committed
Fix deprecated destination warning for registerRemote messages
In SharedWorker environments, sending messages to 'main' is deprecated
due to ambiguity (multiple connected windows). However, `registerRemote`
calls originate from `core.Base` (often singletons) which generally
target the "Main Thread Realm" rather than a specific window.
These registration messages are intercepted by `worker.Base` and
replayed to all connected Main Thread ports. Therefore, using 'main'
as the destination acts as a broadcast signal in this specific context.
We now suppress the deprecation warning for `action: 'registerRemote'`
to treat it as a valid system-wide broadcast.
Resolves #83661 parent 618983d commit 2f6e494
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
| 334 | + | |
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
| |||
0 commit comments