<?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>54522</bug_id>
          
          <creation_ts>2011-02-15 19:34:43 -0800</creation_ts>
          <short_desc>Fix platform/image-encoders/JPEGImageEncoder.cpp empty_output_buffer() behaviour</short_desc>
          <delta_ts>2011-03-07 19:16:16 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Images</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</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>
          
          <blocked>54915</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Alice Boxhall">aboxhall</reporter>
          <assigned_to name="Alice Boxhall">aboxhall</assigned_to>
          <cc>abarth</cc>
    
    <cc>aboxhall</cc>
    
    <cc>commit-queue</cc>
    
    <cc>eric</cc>
    
    <cc>noel.gordon</cc>
    
    <cc>pkasting</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>351831</commentid>
    <comment_count>0</comment_count>
    <who name="Alice Boxhall">aboxhall</who>
    <bug_when>2011-02-15 19:34:43 -0800</bug_when>
    <thetext>The libjpeg documentation (e.g. http://trac.imagemagick.org/browser/jpeg/trunk/libjpeg.txt) specifies:

[the empty_output_buffer method of a JPEGDestinationManager] &quot;should write out the *entire* buffer (use the saved start address and buffer length; ignore the current state of next_output_byte and free_in_buffer).&quot;

Fix jpegEmptyOutputBuffer() by ignoring free_in_buffer value as required.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>351846</commentid>
    <comment_count>1</comment_count>
      <attachid>82580</attachid>
    <who name="Alice Boxhall">aboxhall</who>
    <bug_when>2011-02-15 20:06:26 -0800</bug_when>
    <thetext>Created attachment 82580
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>354752</commentid>
    <comment_count>2</comment_count>
      <attachid>82580</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-02-21 12:51:55 -0800</bug_when>
    <thetext>Comment on attachment 82580
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=82580&amp;action=review

&gt; Source/WebCore/ChangeLog:10
&gt; +        No new tests. (OOPS!)

This line will prevent this patch from landing (because of the OOPS).  Can we test this change?  If not, please explain why we can&apos;t.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>354815</commentid>
    <comment_count>3</comment_count>
    <who name="Alice Boxhall">aboxhall</who>
    <bug_when>2011-02-21 14:40:55 -0800</bug_when>
    <thetext>As noted in http://trac.webkit.org/changeset/67606, there is no existing layout test for this file, as it&apos;s not actually used by anything yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>354832</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-02-21 15:03:43 -0800</bug_when>
    <thetext>If it&apos;s not used by anything, then we should delete it, right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>354835</commentid>
    <comment_count>5</comment_count>
    <who name="Alice Boxhall">aboxhall</who>
    <bug_when>2011-02-21 15:08:34 -0800</bug_when>
    <thetext>Ok, I&apos;ll prepare a changelist which deletes it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>354852</commentid>
    <comment_count>6</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2011-02-21 15:43:34 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; As noted in http://trac.webkit.org/changeset/67606, there is no existing layout test for this file, as it&apos;s not actually used by anything yet.

Does &quot;yet&quot; mean &quot;this is going to be used soon&quot;?  Deleting it doesn&apos;t make sense if we&apos;re about to re-add it, but if there aren&apos;t firm immediate plans, it should go away.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>354872</commentid>
    <comment_count>7</comment_count>
    <who name="Alice Boxhall">aboxhall</who>
    <bug_when>2011-02-21 15:59:37 -0800</bug_when>
    <thetext>The file has been untouched since the initial commit 5 months ago, and still nothing is using it; I think it&apos;s unlikely to be used soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>354896</commentid>
    <comment_count>8</comment_count>
    <who name="Alice Boxhall">aboxhall</who>
    <bug_when>2011-02-21 16:26:58 -0800</bug_when>
    <thetext>Created https://bugs.webkit.org/show_bug.cgi?id=54915 with a patch to remove this code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>354909</commentid>
    <comment_count>9</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2011-02-21 16:51:14 -0800</bug_when>
    <thetext>Closing this, then.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>355035</commentid>
    <comment_count>10</comment_count>
      <attachid>82580</attachid>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2011-02-21 21:38:11 -0800</bug_when>
    <thetext>Comment on attachment 82580
Patch

r- to remove from the review queue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>359719</commentid>
    <comment_count>11</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-03-01 00:38:21 -0800</bug_when>
    <thetext>Re-opening because we&apos;re not ready to remove this code yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>359726</commentid>
    <comment_count>12</comment_count>
      <attachid>82580</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-03-01 00:43:44 -0800</bug_when>
    <thetext>Comment on attachment 82580
Patch

I think this patch is fine, but I&apos;m not sure excited about it.  The problem with fixing dead code is that we can&apos;t test the change, which means we&apos;re likely to regress.

We&apos;ll need to explain why we can&apos;t test this change (and remove the &quot;no new tests&quot; OOPS) before landing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>363628</commentid>
    <comment_count>13</comment_count>
      <attachid>84987</attachid>
    <who name="Alice Boxhall">aboxhall</who>
    <bug_when>2011-03-07 15:16:07 -0800</bug_when>
    <thetext>Created attachment 84987
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>363631</commentid>
    <comment_count>14</comment_count>
    <who name="Alice Boxhall">aboxhall</who>
    <bug_when>2011-03-07 15:20:42 -0800</bug_when>
    <thetext>(In reply to comment #12)
&gt; (From update of attachment 82580 [details])
&gt; I think this patch is fine, but I&apos;m not sure excited about it.  The problem with fixing dead code is that we can&apos;t test the change, which means we&apos;re likely to regress.

Once this code starts to be used (see bug 39230), the canvas.toDataUrl() tests will test it.

&gt; We&apos;ll need to explain why we can&apos;t test this change (and remove the &quot;no new tests&quot; OOPS) before landing.

Done.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>363741</commentid>
    <comment_count>15</comment_count>
      <attachid>84987</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-03-07 18:19:38 -0800</bug_when>
    <thetext>Comment on attachment 84987
Patch

Clearing flags on attachment: 84987

Committed r80521: &lt;http://trac.webkit.org/changeset/80521&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>363742</commentid>
    <comment_count>16</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-03-07 18:19:44 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>363771</commentid>
    <comment_count>17</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-03-07 19:16:16 -0800</bug_when>
    <thetext>http://trac.webkit.org/changeset/80521 might have broken GTK Linux 32-bit Release</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>82580</attachid>
            <date>2011-02-15 20:06:26 -0800</date>
            <delta_ts>2011-03-07 15:16:02 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-54522-20110216150624.patch</filename>
            <type>text/plain</type>
            <size>1714</size>
            <attacher name="Alice Boxhall">aboxhall</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJDb3JlL0No
YW5nZUxvZwppbmRleCA1ZTQxMjJhYWI3NTUzY2UwNmYxODY4NjNlZTM3ZmJlMTE2NmIyYzEzLi4y
ZGQ1MDAwNDYxOTE3ODA4OWIzM2U4N2IyNmM1ZmIzZjE1NTQxZjQ2IDEwMDY0NAotLS0gYS9Tb3Vy
Y2UvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCkBAIC0x
LDMgKzEsMTcgQEAKKzIwMTEtMDItMTUgIEFsaWNlIEJveGhhbGwgIDxhYm94aGFsbEBjaHJvbWl1
bS5vcmc+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAg
Rml4IHBsYXRmb3JtL2ltYWdlLWVuY29kZXJzL0pQRUdJbWFnZUVuY29kZXIuY3BwIGVtcHR5X291
dHB1dF9idWZmZXIoKSBiZWhhdmlvdXIKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcv
c2hvd19idWcuY2dpP2lkPTU0NTIyCisKKyAgICAgICAgRml4IGpwZWdFbXB0eU91dHB1dEJ1ZmZl
cigpIGJ5IGlnbm9yaW5nIGZyZWVfaW5fYnVmZmVyIHZhbHVlIGFzIHJlcXVpcmVkLgorCisgICAg
ICAgIE5vIG5ldyB0ZXN0cy4gKE9PUFMhKQorCisgICAgICAgICogcGxhdGZvcm0vaW1hZ2UtZW5j
b2Rlcn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1fZHVtcC5hcHBlbmQoZGVzdC0+
bV9idWZmZXIuZGF0YSgpLCBkZXN0LT5tX2J1ZmZlci5zaXplKCkgLSBkZXN0LT5mcmVlX2luX2J1
ZmZlcik7CisgICAgZGVzdC0+bV9kdW1wLmFwcGVuZChkZXN0LT5tX2J1ZmZlci5kYXRhKCksIGRl
c3QtPm1fYnVmZmVyLnNpemUoKSk7CiAgICAgZGVzdC0+bmV4dF9vdXRwdXRfYnl0ZSAgPSByZWlu
dGVycHJldF9jYXN0PEpPQ1RFVCo+KGRlc3QtPm1fYnVmZmVyLmRhdGEoKSk7CiAgICAgZGVzdC0+
ZnJlZV9pbl9idWZmZXIgICAgPSBkZXN0LT5tX2J1ZmZlci5zaXplKCk7CiAgICAgcmV0dXJuIFRS
VUU7Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>84987</attachid>
            <date>2011-03-07 15:16:07 -0800</date>
            <delta_ts>2011-03-07 18:19:37 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-54522-20110308101605.patch</filename>
            <type>text/plain</type>
            <size>1859</size>
            <attacher name="Alice Boxhall">aboxhall</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogODA0NTMKZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0No
YW5nZUxvZyBiL1NvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwppbmRleCAzNWJiODMyZGUzYjMyMDMz
ZmM5Y2EzMzM4N2UzMDdmMDkzMzYwMzFjLi44ZmNiYjEwY2JkNDY3OThmOTA5MTM2ZGZhZGJjZmI0
ZjBkODVlMWNiIDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvU291
cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTcgQEAKKzIwMTEtMDMtMDYgIEFsaWNl
IEJveGhhbGwgIDxhYm94aGFs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