<?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>82428</bug_id>
          
          <creation_ts>2012-03-27 23:22:49 -0700</creation_ts>
          <short_desc>JPEGImageDecoder: Set frame alpha state before marking a frame complete</short_desc>
          <delta_ts>2012-03-28 20:54:04 -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>WebGL</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>76498</dependson>
    
    <dependson>78239</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="noel gordon">noel.gordon</reporter>
          <assigned_to name="noel gordon">noel.gordon</assigned_to>
          <cc>kbr</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>589681</commentid>
    <comment_count>0</comment_count>
    <who name="noel gordon">noel.gordon</who>
    <bug_when>2012-03-27 23:22:49 -0700</bug_when>
    <thetext>No test was added in bug 76498 (for the reasons given there) but it allowed color correction for WebGL image textures in more cases (JPEG, opaque PNG images).

The fix for bug 78239 regressed that because the alpha state of the frame was set _after_ calling ImageFrame::setStatus() to mark the image frame complete.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>589683</commentid>
    <comment_count>1</comment_count>
      <attachid>134223</attachid>
    <who name="noel gordon">noel.gordon</who>
    <bug_when>2012-03-27 23:42:08 -0700</bug_when>
    <thetext>Created attachment 134223
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>590373</commentid>
    <comment_count>2</comment_count>
      <attachid>134223</attachid>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2012-03-28 13:46:04 -0700</bug_when>
    <thetext>Comment on attachment 134223
Patch

Code looks fine. Is this covered by existing tests, either layout tests or WebGL conformance tests? If not, is it possible to add one? r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>590670</commentid>
    <comment_count>3</comment_count>
    <who name="noel gordon">noel.gordon</who>
    <bug_when>2012-03-28 17:50:07 -0700</bug_when>
    <thetext>No existing tests that I know of.  My ChangeLog mentioned &quot;No new tests. The application of the color profile is not guaranteed for images used as textures in WebGL.  Have things improved since your wrote that on bug 76498?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>590705</commentid>
    <comment_count>4</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2012-03-28 18:21:46 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; No existing tests that I know of.  My ChangeLog mentioned &quot;No new tests. The application of the color profile is not guaranteed for images used as textures in WebGL.  Have things improved since your wrote that on bug 76498?

Note that in bug 75999 (as you reminded me over chat), a test case was added which verifies that application of a color profile doesn&apos;t completely destroy the contents of a texture. This test couldn&apos;t be added to the WebGL conformance suite, because some browsers might not apply the color profile -- but it was fine to add to the WebKit layout tests, and provided some value in the form of a regression test. The tolerance was increased to the point where the test passed even on platforms that didn&apos;t apply the color profile. I wonder whether something similar could be done here. But regardless, you have an r+, so you can determine whether you want to just commit the fix for the known bug now or try to add a test case for it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>590724</commentid>
    <comment_count>5</comment_count>
    <who name="noel gordon">noel.gordon</who>
    <bug_when>2012-03-28 18:47:22 -0700</bug_when>
    <thetext>I&apos;d rather not add a test that is flaky/sketchy/unreliable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>590759</commentid>
    <comment_count>6</comment_count>
      <attachid>134223</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-03-28 19:18:34 -0700</bug_when>
    <thetext>Comment on attachment 134223
Patch

Clearing flags on attachment: 134223

Committed r112493: &lt;http://trac.webkit.org/changeset/112493&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>590760</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-03-28 19:18:38 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>134223</attachid>
            <date>2012-03-27 23:42:08 -0700</date>
            <delta_ts>2012-03-28 19:18:33 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-82428-20120328174206.patch</filename>
            <type>text/plain</type>
            <size>1992</size>
            <attacher name="noel gordon">noel.gordon</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTEyMzYzCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggYjBlYzU0ZWQ1ZjZiYTM1
NDJjNDE4MmQ3M2IxMDc0MjQzMjk1YzFlNy4uMzAzZTBlYTZjODE4NjUyZWJjYmYxMDIzMDNlZmIx
OTUxOTJjZDlmZiAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDIxIEBACisyMDEyLTAzLTI3ICBOb2Vs
IEdvcmRvbiAgPG5vZWwuZ29yZG9uQGdtYWlsLmNvbT4KKworICAgICAgICBKUEVHSW1hZ2VEZWNv
ZGVyOiBTZXQgZnJhbWUgYWxwaGEgc3RhdGUgY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