Avoid doing IPC for BroadcastChannel when the destination is within the same process.
Created attachment 437925 [details] WIP patch
Created attachment 437943 [details] Patch
Created attachment 437953 [details] Patch
Comment on attachment 437953 [details] Patch I'm assuming this already handles the case where a process crashes, right?
(In reply to Alex Christensen from comment #4) > Comment on attachment 437953 [details] > Patch > > I'm assuming this already handles the case where a process crashes, right? No, we don't currently have good handling for network process crashes, meaning that the BroadcastChannelRegistry doesn't get repopulated after a network process relaunch. This is something we should improve but: 1. I don't think it is made worse by this patch (if anything it is better because messaging between BroadcastChannels inside the same WebProcess will still work after a network process relaunch). 2. I suspect we have issues for MessagePort.
Created attachment 438086 [details] Patch
(In reply to Alex Christensen from comment #4) > Comment on attachment 437953 [details] > Patch > > I'm assuming this already handles the case where a process crashes, right? I filed Bug 230236 to track this issue. Will fix in a follow-up.
Committed r282377 (241639@main): <https://commits.webkit.org/241639@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 438086 [details].
<rdar://problem/83086565>