Site Isolation: validate target frame before redispatching mouse, wheel, gesture and modifier events
Component: WebKit UIProcess | 50215ee
Source/WebKit/UIProcess/WebPageProxy.cpp
This is the input-event counterpart of the iOS selection fix above. When the UI process sends an input event to the process hosting a frame and the hit test lands in a subframe hosted elsewhere, the reply's RemoteUserInputEventData tells the UI process where to re-send the event. That target frame ID comes from an untrusted renderer.
WebPageProxy now runs frameForRemoteUserInputEventRedispatch before redispatching mouse, wheel, gesture and modifier-flag hit-test events. Invalid targets either drop the remote data (mouse, gesture) or skip the redispatch (wheel, modifier flags). The old wheel-path MESSAGE_CHECK on siteIsolationEnabled is removed.
Before: UIProcess ◄─reply{targetFrameID=X}── WebProcess A (untrusted)
UIProcess ──re-send to X (no validation)──► Process(X)
After: UIProcess: frameForRemoteUserInputEventRedispatch(connection, frameID, X)
├─ invalid ─► drop remote data / skip redispatch
└─ valid ─► re-send to X
Significance
A compromised WebContent process could steer UI-process input redispatch to a frame it should not reach, including its own source frame. This closes that IPC trust-boundary gap for the mouse, wheel, gesture and modifier-flag redispatch paths.
Audit directions
Review frameForRemoteUserInputEventRedispatch itself: whether it checks that the frame exists, belongs to this page, descends from the source frame, and is hosted by a different process than the replying connection, and whether any of those checks can be bypassed. Then look for sibling paths that consume RemoteUserInputEventData or other renderer-supplied frame IDs and were not updated, such as iOS touch events, drag and drop, context menu, and keyboard/focus handling.
Two behavior changes deserve follow-up. With the siteIsolationEnabled MESSAGE_CHECK gone, a non-Site-Isolation page that receives remote data now depends entirely on the helper. And the failure modes differ (drop the data and fall through, versus silently return), so the fall-through paths should be checked for state inconsistencies in parked mouse events, the gesture queue, and response timers.