<?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>191068</bug_id>
          
          <creation_ts>2018-10-30 08:17:10 -0700</creation_ts>
          <short_desc>PNGImageDecoder: report no repetition for non-animated images</short_desc>
          <delta_ts>2018-11-02 00:16:21 -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>WebKit 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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Zan Dobersek">zan</reporter>
          <assigned_to name="Zan Dobersek">zan</assigned_to>
          <cc>magomez</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1473260</commentid>
    <comment_count>0</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2018-10-30 08:17:10 -0700</bug_when>
    <thetext>PNGImageDecoder: report no repetition for non-animated images</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1473261</commentid>
    <comment_count>1</comment_count>
      <attachid>353370</attachid>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2018-10-30 08:20:02 -0700</bug_when>
    <thetext>Created attachment 353370
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1473262</commentid>
    <comment_count>2</comment_count>
      <attachid>353370</attachid>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2018-10-30 08:22:44 -0700</bug_when>
    <thetext>Comment on attachment 353370
Patch

Does this fix something?

Is it testable?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1473264</commentid>
    <comment_count>3</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2018-10-30 08:40:45 -0700</bug_when>
    <thetext>This avoids querying the PNG decoder for duration information on non-animated images. As it stands, that query goes on and needlessly decodes all the PNG data. Combined with other issues in ScalableImageDecoder, size of all that decoded data goes unreported to the MemoryCache, which means that MemoryCache ends up handling more data than it knows about. So currently, there&apos;s no simple way to test it yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1473271</commentid>
    <comment_count>4</comment_count>
    <who name="Miguel Gomez">magomez</who>
    <bug_when>2018-10-30 08:55:09 -0700</bug_when>
    <thetext>Yeah, makes sense.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1474415</commentid>
    <comment_count>5</comment_count>
      <attachid>353370</attachid>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2018-11-02 00:15:16 -0700</bug_when>
    <thetext>Comment on attachment 353370
Patch

Clearing flags on attachment: 353370

Committed r237725: &lt;https://trac.webkit.org/changeset/237725&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1474416</commentid>
    <comment_count>6</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2018-11-02 00:15:19 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1474417</commentid>
    <comment_count>7</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-11-02 00:16:21 -0700</bug_when>
    <thetext>&lt;rdar://problem/45755638&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>353370</attachid>
            <date>2018-10-30 08:20:02 -0700</date>
            <delta_ts>2018-11-02 00:15:16 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-191068-20181030162001.patch</filename>
            <type>text/plain</type>
            <size>1894</size>
            <attacher name="Zan Dobersek">zan</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjM3NTg5CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggM2M0MWViNmI1ZGI4MzRm
MTBjNDQ5NmZmZTFhNWEzOTEzZWY0ODRmNC4uNzEwMTBlNjA3M2VkNjRhYjRjYTQyNGNlZWFlYTE5
N2VkZGVlYzRjMyAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE5IEBACisyMDE4LTEwLTMwICBaYW4g
RG9iZXJzZWsgIDx6ZG9iZXJzZWtAaWdhbGlhLmNvbT4KKworICAgICAgICBQTkdJbWFnZURlY29k
ZXI6IHJlcG9ydCBubyByZXBldGl0aW9uIGZvciBub24tYW5pbWF0ZWQgaW1hZ2VzCisgICAgICAg
IGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xOTEwNjgKKworICAgICAg
ICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBXaGVuIGJ1aWxkaW5nIHdp
dGggQVBORyBzdXBwb3J0IGVuYWJsZWQsIHRoZQorICAgICAgICBQTkdJbWFnZURlY29kZXI6OnJl
cGV0aXRpb25Db3VudCgpIG1ldGhvZCB1bnRpbCBub3cgcmVwb3J0ZWQgIGluZmluaXRlCisgICAg
ICAgIHJlcGV0aXRpb24gY291bnQgZm9yIGFsbCBQTkcgaW1hZ2VzLCBldmVuIHRoZSBvbmVzIHRo
Y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