[Webkit-unassigned] [Bug 277804] New: Ghost Picture-in-Picture window after using it with canvas captureStream and reloading page

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 8 08:51:54 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=277804

            Bug ID: 277804
           Summary: Ghost Picture-in-Picture window after using it with
                    canvas captureStream and reloading page
           Product: WebKit
           Version: Safari 17
          Hardware: iPhone / iPad
                OS: iOS 17
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: pp at exmachina.nl

Created attachment 472083

  --> https://bugs.webkit.org/attachment.cgi?id=472083&action=review

Screenshot of ghost PiP window

Please see the following page with a minimal reproduction for this issue:
https://liveryvideo.github.io/test-capture-canvas-pip/

This page assigns the stream captured from the canvas element to the srcObject of the video element so as to mirror the canvas to the video element and enable it to be shown Picture-in-Picture. When you follow the steps however it unexpectedly shows a ghost PiP window.

Steps to reproduce:
1. Draw on canvas => Video mirrors canvas
2. Click Toggle PiP button => Opens video in Picture-in-Picture window
3. Click Toggle PiP button => Closes Picture-in-Picture window
4. Reload page => Start with empty canvas again
5. Draw on canvas => A ghost PiP window opens

In our application this already happens directly on page reload and also when you create a new canvas and video element and use those similarly after using PiP. I guess because we automatically load video and draw it to the canvas without waiting for input and so the stream becomes active and the video element starts playing immediately.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240808/12d0cb70/attachment.htm>


More information about the webkit-unassigned mailing list