[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:57:12 PDT 2011


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





--- Comment #13 from Marc Hoyois <marc.hoyois at gmail.com>  2011-09-09 15:57:11 PST ---
Created an attachment (id=106932)
 --> (https://bugs.webkit.org/attachment.cgi?id=106932&action=review)
Test case demonstrating what I was talking about in comment #11

Scratch that, my first example in comment #11 can also happen with plugins enabled. I attach a test case with the <object><embed> combination. The console output is

1 before accessing parentNode
2 before accessing parentNode
2 after accessing parentNode
1 after accessing parentNode

which shows that accessing the <object> element while handling the beforeload of the <embed> element dispatches a new beforeload on <embed>. You can also have the <embed> element alone and evaluate event.target.offsetWidth or getComputedStyle(event.target, null): same result.

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