Bug 65388 - subsequent onload events have bad dimensions when a beforeload handler is installed.
: subsequent onload events have bad dimensions when a beforeload handler is ins...
Status: RESOLVED DUPLICATE of bug 45586
: WebKit
WebCore Misc.
: 528+ (Nightly build)
: Unspecified Unspecified
: P2 Normal
Assigned To:
: http://ytz.ca/~gavin/redfinning.html
:
:
:
  Show dependency treegraph
 
Reported: 2011-07-29 13:41 PST by
Modified: 2011-09-13 01:26 PST (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2011-07-29 13:41:35 PST
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
------- Comment #1 From 2011-08-01 15:59:19 PST -------
See also: bug 45586.
------- Comment #2 From 2011-08-02 06:43:14 PST -------
And I'd be shocked if https://bugs.webkit.org/show_bug.cgi?id=52581 wasn't closely related, too.
------- Comment #3 From 2011-08-02 15:46:45 PST -------
A fix will make a vocal subset of AdBlock users very happy :)
------- Comment #4 From 2011-09-13 01:26:08 PST -------
I think this is actually a dupe of bug 45586. Please correct me if I'm wrong.

*** This bug has been marked as a duplicate of bug 45586 ***