RESOLVED FIXED327470
REGRESSION (314573@main): MessageChannel of a single page stops delivering for good after the Networking process disconnects
https://bugs.webkit.org/show_bug.cgi?id=327470
Summary REGRESSION (314573@main): MessageChannel of a single page stops delivering fo...
birk.skyum
Reported 2026-10-13 16:55:45 PDT
Created attachment 481794 [details] Test case with React 19 Since 314573@main every MessagePort of a page is closed when the Networking process disconnects. That includes a MessageChannel whose two ports never left the page or worker that created it. No event is fired and the channel never delivers again. Channels created afterwards work. Libraries that post to a MessageChannel of their own to schedule work stop for good when that happens, while the page stays on screen. React's scheduler is one of them. In webkit-test-case-react.html React 19 stops rendering state that is set from a timer. Steps to reproduce 1. Open webkit-test-case.html in Safari on iOS 27.0 (I used the simulator). 2. Kill the com.apple.WebKit.Networking process. Actual result "sent" keeps counting and the two "received" lines stop. The load time stays the same, so the page was not reloaded. Expected result All three keep counting, as in Safari on iOS 17.5. Also reproduces in Playwright's WebKit 27.2. The change is in Safari 26.6 too (WebKit-7624.4.5), which I haven't run. MessagePortSecurity.MessagePortsSurviveNetworkProcessRestart expects the closed ports, so I understand this is intended. Since 315709@main two ports of the same realm deliver without the Networking process, though. Could such a pair be kept?
Attachments
Test case with React 19 (1.04 KB, text/html)
2026-10-13 16:55 PDT, birk.skyum
no flags
Test case with a plain MessageChannel (1.09 KB, text/html)
2026-10-13 17:13 PDT, birk.skyum
no flags
birk.skyum
Comment 1 2026-10-13 17:13:19 PDT
Created attachment 481795 [details] Test case with a plain MessageChannel
birk.skyum
Comment 2 2026-10-14 07:21:54 PDT
Radar WebKit Bug Importer
Comment 3 2026-10-14 17:33:00 PDT
EWS
Comment 4 2026-10-30 20:38:43 PDT
Committed 325343@main (4b125afe35a2): <https://commits.webkit.org/325343@main> Reviewed commits have been landed. Closing PR #77006 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.