Decode VP8 in the content process in AudioVideoRendererRemote
Component: WebKit media | a4bfe4c
Source/WebKit/WebProcess/GPU/media/AudioVideoRendererRemote.cpp
AudioVideoRendererRemote is the WebContent-side proxy for the media renderer in the GPU process. It normally forwards compressed samples over IPC, and audio could already be decoded locally with only PCM crossing. Behind VideoSoftwareDecodingInContentProcessEnabled (off by default), video codecs listed in the new MediaVideoCodecIDsDecodedInContentProcess preference (default "vp08") are now decoded in WebContent, and the decoded frames are sent to the GPU process. Protected video and other codecs still travel compressed. Track state splits into m_audioTrackStates plus a single m_videoTrackState slot, and adding a video track releases the previous one's state.
Significance
With the testable preference on, software VP8 parsing of untrusted bitstreams moves from the GPU process into WebContent, and the media IPC payload changes from compressed samples to decoded frames.
Audit directions
Single-slot state replacement on a dispatcher thread is a lifetime pattern worth hunting: check races between addTrack, flush, drain and failTrack against in-flight decode callbacks, the destructor path that moves state to the dispatcher via std::exchange, and decoder callbacks that outlive released state after processSample starts dropping samples for a replaced track. Verify no path still assumes the old single map after the move to isVideoTrack/forEachTrackState routing. Attacker-chosen timestamps feeding dispatchSample and expectMinimumUpcomingPresentationTime merit an ordering review. On the receiving side, sendSample now carries decoded video where it used to carry compressed video, so check that the GPU process does not assume properties of frames WebContent now produces. Malformed entries in the comma-separated FourCC parsing in WebProcess::updateProcessPreferences, and runtime preference changes, round it out.