<?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>65388</bug_id>
          
          <creation_ts>2011-07-29 13:41:35 -0700</creation_ts>
          <short_desc>subsequent onload events have bad dimensions when a beforeload handler is installed.</short_desc>
          <delta_ts>2011-09-13 01:26:08 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>45586</dup_id>
          
          <bug_file_loc>http://ytz.ca/~gavin/redfinning.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gavin Peters">gavinp</reporter>
          <assigned_to name="Gavin Peters">gavinp</assigned_to>
          <cc>adblockforchrome</cc>
    
    <cc>aestes</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>444077</commentid>
    <comment_count>0</comment_count>
    <who name="Gavin Peters">gavinp</who>
    <bug_when>2011-07-29 13:41:35 -0700</bug_when>
    <thetext>If, and apparently only if, you have a beforeload handler installed, subsequent loads of already loaded images gets bogus dimensions for the element in the onload handler.

Read source on the URL above for a good reproduction.

Believe it or not, commenting out the beforeload handler makes this go away.

This is a minimisation of what users were seeing in chrome bug 72484: http://code.google.com/p/chromium/issues/detail?id=72484</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>444953</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-08-01 15:59:19 -0700</bug_when>
    <thetext>See also: bug 45586.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>445235</commentid>
    <comment_count>2</comment_count>
    <who name="Gavin Peters">gavinp</who>
    <bug_when>2011-08-02 06:43:14 -0700</bug_when>
    <thetext>And I&apos;d be shocked if https://bugs.webkit.org/show_bug.cgi?id=52581 wasn&apos;t closely related, too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>445574</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Gundlach">adblockforchrome</who>
    <bug_when>2011-08-02 15:46:45 -0700</bug_when>
    <thetext>A fix will make a vocal subset of AdBlock users very happy :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>466186</commentid>
    <comment_count>4</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2011-09-13 01:26:08 -0700</bug_when>
    <thetext>I think this is actually a dupe of bug 45586. Please correct me if I&apos;m wrong.

*** This bug has been marked as a duplicate of bug 45586 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>