<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>237424</bug_id>
          
          <creation_ts>2022-03-03 05:40:04 -0800</creation_ts>
          <short_desc>REGRESSION (Safari 15.3): Drawing video on canvas results in black canvas if GPU Process: Canvas rendering is on</short_desc>
          <delta_ts>2022-03-30 14:03:59 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Canvas</component>
          <version>Safari 15</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 12</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>peter.parks.eron</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>jer.noble</cc>
    
    <cc>jonlee</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1847853</commentid>
    <comment_count>0</comment_count>
    <who name="">peter.parks.eron</who>
    <bug_when>2022-03-03 05:40:04 -0800</bug_when>
    <thetext>When video uses Hls stream as a source in Safari, and when I want to draw that video onto the canvas using drawImage(video, 0, 0, w, h) (https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage), canvas results in a black image.
If I turn off the experimental feature- GPU Process: Canvas Rendering, everything works as expected. And it worked as expected in previous Safari versions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1848323</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-03-04 09:16:40 -0800</bug_when>
    <thetext>&lt;rdar://problem/89817412&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1850949</commentid>
    <comment_count>2</comment_count>
    <who name="">peter.parks.eron</who>
    <bug_when>2022-03-14 11:13:47 -0700</bug_when>
    <thetext>I guess that it started with the first version that included GPU Process: Canvas Rendering as On by default.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1856564</commentid>
    <comment_count>3</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2022-03-30 14:03:59 -0700</bug_when>
    <thetext>This appears to work correctly now: &lt;https://jernoble.github.io/samples/bin/video-to-canvas/hls.html&gt;

Peter, would you mind testing with a recent STP build?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>