[Webkit-unassigned] [Bug 44575] beforeload event fired twice on <object>s

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 9 15:21:58 PDT 2011


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





--- Comment #12 from Marc Hoyois <marc.hoyois at gmail.com>  2011-09-09 15:21:57 PST ---
It seems that beforeload events are always fired twice (at least on <embeds>) when plugins are disabled in Safari's preferences. I assumed that was the same as having no plugins installed, but it's not. Evaluation of things like event.target.offsetWidth or event.target.parentNode.toString() if the parent is an <object> create a 2nd beforeload dispatch on event.target within the handler, but otherwise a 2nd beforeload is still fired after the first has been handled.

Anyway I cannot reproduce the first example in my comment #11 if plugins are enabled, so this is not quite a real-life example, but still a valid test case to keep in mind to make sure beforeload dispatch is logically implemented.

-- 
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