Remove FrameInfoData.securityOrigin
Component: WebKit UI process IPC | f78ffea
Source/WebKit/Shared/FrameInfoData.h
Source/WebKit/UIProcess/API/APIFrameInfo.h
The UI process enforces WebKit's privileged decisions (navigation policy, permission prompts, WebAuthn), while sandboxed WebContent processes send a FrameInfoData blob with many IPC messages to describe the frame that triggered an action. WebFrameProxy is the UI process's own mirror of each frame, updated at commit time, and is the intended trust anchor. This commit removes securityOrigin from FrameInfoData and its serialization. Navigation policy, geolocation requests, WebAuthn callerOrigin, BiDi realm info and API::FrameInfo now read WebFrameProxy::documentSecurityOriginData. API::FrameInfo::StateSnapshot captures the origin with const fields, and WebProcessProxy::hasCommittedClientOrigin now returns true for opaque origins already in m_committedClientOrigins.
Significance
A compromised WebContent process could previously lie about a frame's origin and have that value drive UI-process permission and policy decisions; those decisions now rest on UI-process state.
Audit directions
The commit message notes that main-frame web archive loads still trust the WebContent-reported origin; trace how that value reaches WebFrameProxy and whether a compromised renderer can reach it outside archive loads. Because documentSecurityOriginData is updated in didCommitLoad, commitProvisionalFrame and ProvisionalPageProxy, check whether the commit IPC that populates it is itself renderer-controlled, and look for windows (pending navigation, provisional page swap, cross-process iframes) where it is stale or belongs to another document. The opaque-origin relaxation in hasCommittedClientOrigin is worth examining, since opaque origins compare by identity. More widely, review every remaining UI-process consumer of renderer-supplied identity (documentID, frameID-based lookups) that this commit did not touch, and the refactored originatingFrameSecurityOrigin helpers for fallbacks that yield an empty or opaque origin treated as allow.