[Webkit-unassigned] [Bug 45586] Having an empty listener to beforeload events changes the behavior of other scripts

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 5 18:50:35 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=45586


Aaron Boodman <aa at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |
                 CC|                            |aa at chromium.org,
                   |                            |hyatt at apple.com




--- Comment #3 from Aaron Boodman <aa at chromium.org>  2010-10-05 18:50:35 PST ---
(In reply to comment #2)
> Since the spec does not require .offsetWidth to be set when the 'load' event is fired (the image's .width property has this purpose and works correctly), this behavior seems legit, although the fact that it happens exclusively with beforeload listeners indicates that it might be the consequence of another bug.

I disagree that the behavior is legit. It appears that the behavior without anyone listening to the 'beforeLoad' event is that the width/height are always set in the 'load' event. I believe that is also the behavior in other browsers.

Therefore the result of this bug is that extension developers can break web compat in a very unexpected way that would be difficult for them to anticipate, or to do anything about.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list