[Picture in Picture] Close window when starting PiP in another tab.
Currently, we don't close the existing Picture-in-Picture window when the a new tab (i.e. content::WebContents) initiates Picture-in-Picture mode. This change tears down Picture-in-Picture mode for the current video before opening a new one. This change also pauses the video on user gesture to close. When the Picture-in-Picture window is closed, the video in tab will not continue playing, even if it was playing in the window. BUG: 823172 Change-Id: I15e4ada29c6447fd15751503e1ad41868a89e71a Reviewed-on: https://chromium-review.googlesource.com/1044752 Commit-Queue: apacible <apacible@chromium.org> Reviewed-by:Mounir Lamouri <mlamouri@chromium.org> Reviewed-by:
Elly Fong-Jones <ellyjones@chromium.org> Cr-Commit-Position: refs/heads/master@{#556692}
Showing
Please register or sign in to comment