STR: 1. Set media.videocontrols.picture-in-picture.enabled to true 2. Visit https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video, and right click on the <video> element of the flower. 3. Choose "Loop" to loop the playback of the video, and then play the video. 4. Right click on the video again, and choose "Picture in Picture" to open the video in a new Picture in Picture window. 5. Play the video for a second or two. 6. Right click on the video again, and choose "Picture in Picture" to close the Picture in Picture window. 7. Quickly right click on the video again, and choose "Picture in Picture" to re-open the video in a Picture in Picture window. 8. Wait ER: The video should continue to playback on the Picture in Picture window. AR: After a few seconds (after a cycle collection in the content process), the video playback will stop in the Picture in Picture window. What's happening is that the mVisualCloneSource is never being cleared on the original PiP window's <video>, even as the flower video's mVisualCloneTarget is being updated to the new PiP window's <video>. That means that when the old PiP <video> eventually gets cycle collected, it runs UnbindFromTree, sees that it has a mVisualCloneSource, and stops that clone source from cloning. Patch and test coming up.
Bug 1532682 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
STR: 1. Set media.videocontrols.picture-in-picture.enabled to true 2. Visit https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video, and right click on the <video> element of the flower. 3. Choose "Loop" to loop the playback of the video, and then play the video. 4. Right click on the video again, and choose "Picture in Picture" to open the video in a new Picture in Picture window. 5. Play the video for a second or two. 6. Right click on the video again, and choose "Picture in Picture" to close the Picture in Picture window. 7. Quickly right click on the video again, and choose "Picture in Picture" to re-open the video in a Picture in Picture window. 8. Wait ER: The video should continue to playback on the Picture in Picture window. AR: After a few seconds (after a cycle collection in the content process), the video playback will stop in the Picture in Picture window. What's happening is that the mVisualCloneSource is never being cleared on the original PiP window's <video>, even as the flower video's mVisualCloneTarget is being updated to the new PiP window's <video>. That means that when the old PiP <video> eventually gets cycle collected, it runs UnbindFromTree, sees that it has a mVisualCloneSource, and stops that clone source from cloning. Patch coming up.