<?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>202455</bug_id>
          
          <creation_ts>2019-10-02 05:53:26 -0700</creation_ts>
          <short_desc>w3c/web-platform-tests/2dcontext/drawing-images-to-the-canvas/2d.drawImage.broken.html fails on Mac and iOS</short_desc>
          <delta_ts>2024-05-22 22:48:37 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>179191</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Lord">clord</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>dino</cc>
    
    <cc>karlcow</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1575953</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Lord">clord</who>
    <bug_when>2019-10-02 05:53:26 -0700</bug_when>
    <thetext>This test fails on both MacOS and iOS with:

FAIL Canvas test: 2d.drawImage.broken assert_approx_equals: Green channel of the pixel at (50, 25) expected 255 +/- 2 but got 0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1925249</commentid>
    <comment_count>1</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2023-01-12 23:42:27 -0800</bug_when>
    <thetext>The test should throw, but it doesn&apos;t currently.

Firefox returns
 Uncaught DOMException: CanvasRenderingContext2D.drawImage: Passed-in image is &quot;broken&quot;


while Safari is completely silent and seems to just go with it. 

Probably something to explore around
https://searchfox.org/wubkat/rev/12fc92585a259a29b2522e7e902492be45a57b6a/Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp#1468-1492</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1925250</commentid>
    <comment_count>2</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2023-01-12 23:46:04 -0800</bug_when>
    <thetext>In addition to 
https://wpt.fyi/results/html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.broken.html

Probably this failure is very similar and could be fixed at the same time.
https://wpt.fyi/results/html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.nonexistent.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2011930</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-02-08 15:14:53 -0800</bug_when>
    <thetext>&lt;rdar://problem/122586368&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2037254</commentid>
    <comment_count>4</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-05-22 22:48:37 -0700</bug_when>
    <thetext>This now PASS.
https://wpt.fyi/results/html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.broken.html?label=experimental&amp;label=master&amp;aligned

But this one needs to be fixed. Probably in a separate bug. 
https://wpt.fyi/results/html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.nonexistent.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>