[Webkit-unassigned] [Bug 54942] New: In layout tests, iframe's onload handler should not use script function defined after the iframe

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 22 00:37:40 PST 2011


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

           Summary: In layout tests, iframe's onload handler should not
                    use script function defined after the iframe
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: wangxianzhu at google.com


Some layout tests (e.g. fast/dom/wrapper-classes.html) contain code like the following:

<iframe onload="frameLoaded()" src="data:.."></iframe>

<script>
....
function frameLoaded() {
  ......
}
</script>

It's possible that the iframe's onload handler is called before the later script element is executed, causing the tests to fail.

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