<?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>86149</bug_id>
          
          <creation_ts>2012-05-10 15:10:54 -0700</creation_ts>
          <short_desc>libjpeg_turbo doesn&apos;t properly set the alpha value to 0xFF on Android</short_desc>
          <delta_ts>2012-05-15 12:43:41 -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>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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>86180</dependson>
          <blocked>66687</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Adam Barth">abarth</reporter>
          <assigned_to name="Adam Barth">abarth</assigned_to>
          <cc>hbono</cc>
    
    <cc>noel.gordon</cc>
    
    <cc>qinmin</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>621045</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-05-10 15:10:54 -0700</bug_when>
    <thetext>libjpeg_turbo doesn&apos;t properly set the alpha value to 0xFF on Android</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>621048</commentid>
    <comment_count>1</comment_count>
      <attachid>141275</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-05-10 15:11:50 -0700</bug_when>
    <thetext>Created attachment 141275
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>621049</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-05-10 15:12:20 -0700</bug_when>
    <thetext>I&apos;m not entirely sure what to do with this patch.  Noel: Any thoughts?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>621054</commentid>
    <comment_count>3</comment_count>
    <who name="Min Qin">qinmin</who>
    <bug_when>2012-05-10 15:19:54 -0700</bug_when>
    <thetext>Hironori has a patch that fixed this in libjpeg_turbo:
http://libjpeg-turbo.svn.sourceforge.net/viewvc/libjpeg-turbo?view=revision&amp;revision=810
But the change has&apos;t been merged into chromium yet.

So I am wondering whether we should wait for that to happen or we can submit this change first and wait for that change to merge.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>621067</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-05-10 15:41:04 -0700</bug_when>
    <thetext>&gt; Hironori has a patch that fixed this in libjpeg_turbo:
&gt; http://libjpeg-turbo.svn.sourceforge.net/viewvc/libjpeg-turbo?view=revision&amp;revision=810
&gt; But the change has&apos;t been merged into chromium yet.

Fri Mar 16 14:30:46 2012 UTC (7 weeks, 6 days ago)

What&apos;s the ETA for merging that into Chromium?

&gt; So I am wondering whether we should wait for that to happen or we can submit this change first and wait for that change to merge.

One possibility is to submit this change with a link to the fix so that folks will know when to remove it in the future.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>621072</commentid>
    <comment_count>5</comment_count>
    <who name="Min Qin">qinmin</who>
    <bug_when>2012-05-10 15:46:42 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; &gt; Hironori has a patch that fixed this in libjpeg_turbo:
&gt; &gt; http://libjpeg-turbo.svn.sourceforge.net/viewvc/libjpeg-turbo?view=revision&amp;revision=810
&gt; &gt; But the change has&apos;t been merged into chromium yet.
&gt; 
&gt; Fri Mar 16 14:30:46 2012 UTC (7 weeks, 6 days ago)
&gt; 
&gt; What&apos;s the ETA for merging that into Chromium?

Hironori san, any idea when this change will be merged into chromium?

&gt; 
&gt; &gt; So I am wondering whether we should wait for that to happen or we can submit this change first and wait for that change to merge.
&gt; 
&gt; One possibility is to submit this change with a link to the fix so that folks will know when to remove it in the future.

That should also work, let&apos;s see how long will that fix go into chromium first.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>621153</commentid>
    <comment_count>6</comment_count>
    <who name="Hironori Bono">hbono</who>
    <bug_when>2012-05-10 17:30:41 -0700</bug_when>
    <thetext>Greetings Min,

Thanks for your update. I will update our copy of libjpeg-turbo to the latest trunk next week.

Regards,

Hironori Bono

(In reply to comment #5)
&gt; Hironori san, any idea when this change will be merged into chromium?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>621169</commentid>
    <comment_count>7</comment_count>
      <attachid>141275</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-05-10 17:57:17 -0700</bug_when>
    <thetext>Comment on attachment 141275
Patch

Thanks!  I&apos;m going to leave this bug open for a bit to remind me to follow up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>621173</commentid>
    <comment_count>8</comment_count>
    <who name="noel gordon">noel.gordon</who>
    <bug_when>2012-05-10 18:15:29 -0700</bug_when>
    <thetext>Sounds good, want hbono&apos;s fix for libjpeg-turbo in the chromium tree, http://crbug.com/106020</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>623591</commentid>
    <comment_count>9</comment_count>
    <who name="noel gordon">noel.gordon</who>
    <bug_when>2012-05-14 20:23:02 -0700</bug_when>
    <thetext>Right, new libjpeg-turbo r829 is now in webkit and should obviate the need for this change.

@qinmin could you build and test Android with webkit TOT libjpeg-turbo r829, and let us know here if it works without all the #if OS(ANDROID) in the current patch?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>623596</commentid>
    <comment_count>10</comment_count>
    <who name="noel gordon">noel.gordon</who>
    <bug_when>2012-05-14 20:27:16 -0700</bug_when>
    <thetext>The webkit revision to test should be http://trac.webkit.org/changeset/117020 (r117020) or above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>623599</commentid>
    <comment_count>11</comment_count>
    <who name="Min Qin">qinmin</who>
    <bug_when>2012-05-14 20:33:14 -0700</bug_when>
    <thetext>Will do that tomorrow</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>624372</commentid>
    <comment_count>12</comment_count>
    <who name="Min Qin">qinmin</who>
    <bug_when>2012-05-15 12:13:17 -0700</bug_when>
    <thetext>Yes, with libjpeg-turbo r829, the images now render correctly without this patch.

I will remove the code from downstream android implementation after our next merge.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>624404</commentid>
    <comment_count>13</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-05-15 12:43:41 -0700</bug_when>
    <thetext>Thanks Min!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>141275</attachid>
            <date>2012-05-10 15:11:50 -0700</date>
            <delta_ts>2012-05-10 17:57:17 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-86149-20120510151149.patch</filename>
            <type>text/plain</type>
            <size>1817</size>
            <attacher name="Adam Barth">abarth</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDExNjY5NCkKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDEzIEBACisyMDEyLTA1LTEwICBBZGFtIEJh
cnRoICA8YWJhcnRoQHdlYmtpdC5vcmc+CisKKyAgICAgICAgbGlianBlZ190dXJibyBkb2Vzbid0
IHByb3Blcmx5IHNldCB0aGUgYWxwaGEgdmFsdWUgdG8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SB7CiAgICAgICAgICAgICAg
dW5zaWduZWQgY2hhciogcm93ID0gcmVpbnRlcnByZXRfY2FzdDx1bnNpZ25lZCBjaGFyKj4oYnVm
ZmVyLmdldEFkZHIoMCwgaW5mby0+b3V0cHV0X3NjYW5saW5lKSk7CiAgICAgICAgICAgICAgaWYg
KGpwZWdfcmVhZF9zY2FubGluZXMoaW5mbywgJnJvdywgMSkgIT0gMSkKLSAgICAgICAgICAgICAg
ICAgIHJldHVybiBmYWxzZTsKKyAgICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlOworI2lmIE9T
KEFORFJPSUQpCisgICAgICAgICAgICAgLy8gVGhlcmUgaXMgYSBidWcgaW4gbGlianBlZ190dXJi
byB0aGF0IGFscGhhIHZhbHVlIGlzIG5vdCBzZXQgdG8KKyAgICAgICAgICAgICAvLyAweEZGIG9u
IGFuZHJvaWQgd2hlbiBkb19mYW5jeV9zYW1wbGluZyBpcyBzZXQgdG8gZmFsc2UuIFNldAorICAg
ICAgICAgICAgIC8vIGFscGhhIHZhbHVlcyBoZXJlIHV0aWwgdGhlIGJ1ZyBpcyBmaXhlZCBpbiBs
aWJqcGVnX3R1cmJvLgorICAgICAgICAgICAgIHVuc2lnbmVkIGNoYXIqIGFscGhhID0gcm93ICsg
MzsKKyAgICAgICAgICAgICBmb3IgKGludCB4ID0gMDsgeCA8IChpbnQpIGluZm8tPm91dHB1dF93
aWR0aDsgKyt4LCBhbHBoYSArPSA0KQorICAgICAgICAgICAgICAgICAqYWxwaGEgPSAweEZGOwor
I2VuZGlmCiAgICAgICAgICB9CiAgICAgICAgICByZXR1cm4gdHJ1ZTsKICAgICAgfQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>