RequestImmersivePlaybackConfirmation()Oleh Desiatyrikov (xWF)Doesn't look like this is called by anything? Mojo reviews require all methods to have non-test usage. You'll have to add this when it's used.
Giovanni Ortuno UrquidiThe next CL [1] in the chain is adding a use case for this method. I've made it separate so it's easier to review. Should I combine these two?
[1] https://chromium-review.git.corp.google.com/c/chromium/src/+/7716732
Oleh Desiatyrikov (xWF)Is there going to be a browser-side check that ensure the renderer has user confirmation for immersive PiP?
What about removing it from the Mojo interface and the service and adding it in the next CL? Would that add too much to the follow up CL?
I removed the `RequestImmersivePlaybackConfirmation` call from this CL and will submit it as a part of the follow-up CL.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
mojo lgtm
CHECK_EQ(IsImmersive(), !immersive_options.is_null());Since a compromised renderer could send this, could we call ReportBadMessage() to kill it instead of crashing the browser?
CHECK_EQ(IsImmersive(), !immersive_options.is_null());Since a compromised renderer could send this, could we call ReportBadMessage() to kill it instead of crashing the browser?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
if (!IsPictureInPictureEnabled()) {Sorry I don't know why I missed this earlier - just to make sure, this is moved from here to `PictureInPictureWindowManager::GetInstance()` (effectively VideoPictureInPictureWindowController), since Is immersive mode enabled can control this too.
Is that the right understanding?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
if (!IsPictureInPictureEnabled()) {Sorry I don't know why I missed this earlier - just to make sure, this is moved from here to `PictureInPictureWindowManager::GetInstance()` (effectively VideoPictureInPictureWindowController), since Is immersive mode enabled can control this too.
Is that the right understanding?
Correct. We've discussed this part with @libe...@chromium.org here [1] and it was the way to avoid duplicating the `EnterPictureInPicture` path for Immersive.
[1] https://chromium-review.git.corp.google.com/c/chromium/src/+/7717398/comment/2d79c3a3_226014fc/