Chromium Code Reviews
DescriptionRoute Pepper MediaSession messages to frames
This CL fixes an issue that SetPepperVolume (coming from
MediaSession) is only sent to the top-level frame. Instead, the
message should be handled by the frames which created the Pepper
instance. The issue can cause a crash if there is a Pepper
instance playing sound in a cross-origin iframe while
site-isolation is enabled.
Now we use pair <RenderFrameHost, pp_instance> as player id so
that SetPepperVolume can be sent to the correct frame.
BUG=670273
Committed: https://crrev.com/7b6f4f00951c96ba468bd8ad554fda1065bacfa6
Cr-Commit-Position: refs/heads/master@{#437079}
Patch Set 1 #Patch Set 2 : nits #
Total comments: 6
Patch Set 3 : addressed Anton's comments #
Total comments: 2
Patch Set 4 : pure rebase #Patch Set 5 : better clean up when RenderFrame/WebContents is destroyed #
Total comments: 2
Patch Set 6 : nit #Patch Set 7 : fixed Android build #
Messages
Total messages: 25 (13 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||