Implement network process crash recovery for BroadcastChannel. Currently, if the network process crashes and relaunches, pre-existing BroadcastChannels will be broken (communication won't be possible between WebProcesses).
Created attachment 438247 [details] Patch
Comment on attachment 438247 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=438247&action=review > Source/WebKit/WebProcess/WebCoreSupport/WebBroadcastChannelRegistry.cpp:113 > + for (auto& channelsPerOriginEntry : m_channelsPerOrigin) { > + auto& origin = channelsPerOriginEntry.key; > + auto& channelsForOrigin = channelsPerOriginEntry.value; I believe we can write this with de-structuring and save many lines of code: for (auto& [origin, channelsForOrigin] : m_channelsPerOrigin) { But I haven’t tried it. Seems like it would be better if it works.
Created attachment 438267 [details] Patch
Committed r282483 (241731@main): <https://commits.webkit.org/241731@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 438267 [details].
<rdar://problem/83176366>