<?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>40147</bug_id>
          
          <creation_ts>2010-06-03 16:22:26 -0700</creation_ts>
          <short_desc>[Canvas] Should pass canvas/philip/tests/toDataURL.jpeg.alpha.html</short_desc>
          <delta_ts>2012-04-18 20:49:22 -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>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.6</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>68366</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>Trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>46506</blocked>
    
    <blocked>48575</blocked>
    
    <blocked>49365</blocked>
    
    <blocked>83973</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Matthew Delaney">mdelaney7</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>adele</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>jbauman</cc>
    
    <cc>kangax</cc>
    
    <cc>mdelaney7</cc>
    
    <cc>noel.gordon</cc>
    
    <cc>pkasting</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>233977</commentid>
    <comment_count>0</comment_count>
    <who name="Matthew Delaney">mdelaney7</who>
    <bug_when>2010-06-03 16:22:26 -0700</bug_when>
    <thetext>For image types that do not support an alpha channel, the image must be composited onto a solid black background using the source-over operator, and the resulting image must be the one used to create the data: URL.

Need support to pass this test under CG.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>314838</commentid>
    <comment_count>1</comment_count>
    <who name="noel gordon">noel.gordon</who>
    <bug_when>2010-11-29 20:26:06 -0800</bug_when>
    <thetext>Sought clarification on the this section of the &lt;canvas&gt; spec, bug filed.
  http://www.w3.org/Bugs/Public/show_bug.cgi?id=11431

issue #1 Safari and Chrome-Mac don&apos;t composite JPEG toDataURL onto black.
 Needs a fix near http://trac.webkit.org/browser/trunk/WebCore/platform/graphics/cg/ImageBufferCG.cpp?rev=70143#L354
 to specify the background color via dictionary key kCGImageDestinationBackgroundColor 

issue #2 philip test toDataURL.jpeg.alpha
 Is this test correct?  Should the alpha channel be ignored (philip test), or should the unpremultiplied RGB values
 be used instead (FireFox, Safari).  http://www.w3.org/Bugs/Public/show_bug.cgi?id=11431 to resolve.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>319851</commentid>
    <comment_count>2</comment_count>
    <who name="Mihai Parparita">mihaip</who>
    <bug_when>2010-12-09 18:24:29 -0800</bug_when>
    <thetext>*** Bug 48580 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>332814</commentid>
    <comment_count>3</comment_count>
    <who name="noel gordon">noel.gordon</who>
    <bug_when>2011-01-11 17:18:28 -0800</bug_when>
    <thetext>issue #2 philip test toDataURL.jpeg.alpha
  resolved http://www.w3.org/Bugs/Public/show_bug.cgi?id=11431 WONTFIX, the
  toDataURL.jpeg.alpha test is correct wrt the &lt;canvas&gt; spec text.  Updated
  chrome linux/win32 to conform to the standard on bug 51237</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>351662</commentid>
    <comment_count>4</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2011-02-15 15:36:10 -0800</bug_when>
    <thetext>This test no longer seems to be failing on Chromium Mac.  Removing it from test_expectations.txt.  Please reopen if this is incorrect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>363865</commentid>
    <comment_count>5</comment_count>
    <who name="noel gordon">noel.gordon</who>
    <bug_when>2011-03-08 00:12:45 -0800</bug_when>
    <thetext>LayoutTests/platform/mac-snowleopard/canvas/philip/tests/toDataURL.jpeg.alpha-expected.txt contains

  Failed assertion: got pixel [193,255,192,255] at (50,25), expected [63,127,63,255] +/- 8

That&apos;s the result I see on chrome-mac, safari-mac at ToT webkit when I run the test.  So still not
fixed, reopening this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>364035</commentid>
    <comment_count>6</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2011-03-08 10:58:39 -0800</bug_when>
    <thetext>Sounds like someone committed &quot;expected failure&quot; results and we need to fix them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>473479</commentid>
    <comment_count>7</comment_count>
    <who name="John Bauman">jbauman</who>
    <bug_when>2011-09-26 15:46:49 -0700</bug_when>
    <thetext>Seems to be fixed (with corrected expected result) in 68366.

*** This bug has been marked as a duplicate of bug 68366 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>473635</commentid>
    <comment_count>8</comment_count>
    <who name="noel gordon">noel.gordon</who>
    <bug_when>2011-09-26 19:21:46 -0700</bug_when>
    <thetext>For the record, dictionary key kCGImageDestinationBackgroundColor didn&apos;t help.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>