Bug 65388
Summary: | subsequent onload events have bad dimensions when a beforeload handler is installed. | ||
---|---|---|---|
Product: | WebKit | Reporter: | Gavin Peters <gavinp> |
Component: | WebCore Misc. | Assignee: | Gavin Peters <gavinp> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | adblockforchrome, aestes |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | http://ytz.ca/~gavin/redfinning.html |
Gavin Peters
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
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
See also: bug 45586.
Gavin Peters
And I'd be shocked if https://bugs.webkit.org/show_bug.cgi?id=52581 wasn't closely related, too.
Michael Gundlach
A fix will make a vocal subset of AdBlock users very happy :)
Andy Estes
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 ***