[Webkit-unassigned] [Bug 70128] New: onload handlers fire in incorrect order when iframes are present
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Oct 14 11:56:40 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=70128
Summary: onload handlers fire in incorrect order when iframes
are present
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Page Loading
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: vitaliyl at chromium.org
Created an attachment (id=111041)
--> (https://bugs.webkit.org/attachment.cgi?id=111041&action=review)
minimal case reproducing the bug
Given three onload handlers: for the top-level document, for the iframe element in that was added to the DOM in inline Javascript block, and for the document inside the iframe, the onload handlers sometimes fire in a wrong order. In particular, the top-level document onload handler fires first, followed by the iframe document onload handler, followed by the iframe element onload handler. I don't know what is the standard-prescribed behavior, but both Mozilla/Firefox and recent versions of IE fire off the handlers in a more sane order: iframe document onload handler followed by the iframe element onload handler followed by the top-level document onload handler. Please see the minimal test case attached.
I also noticed in my testing that presence of other DOM elements, such as images, in the top-level document affects the ordering, sometimes causing it to match Firefox and IE behavior, but only sometimes. I was not able to narrow down exactly what causes the behavior to change.
I've initially found this bug in dev-channel Chrome, but I was able to reproduce it in stable Safari builds as well.
--
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