Closed Bug 761872 Opened 12 years ago Closed 12 years ago

content/base/test/test_bug518104.html has race between <iframe> and parent document script

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: bhackett1024, Assigned: bhackett1024)

References

Details

Attachments

(1 file, 1 obsolete file)

This test has an <iframe> with a deferred script that calls a function in the parent document. According to bz the semantics here are that the iframe script can start executing as soon as the <iframe> is done being parsed, which may be before the parent script has finished parsing and the function installed on the global. This is breaking in supersnappy, which is evaluating the scripts in this ordering.
Attached patch patch (obsolete) — Splinter Review
This causes the parent.done() call to work and the test to pass with supersnappy.
Assignee: nobody → bhackett1024
Attachment #630393 - Flags: review?(bzbarsky)
Attached patch patchSplinter Review
Now with the correct patch.
Attachment #630393 - Attachment is obsolete: true
Attachment #630393 - Flags: review?(bzbarsky)
Attachment #630397 - Flags: review?(bzbarsky)
Attachment #630397 - Flags: review?(bzbarsky) → review+
Keywords: checkin-needed
OS: Mac OS X → All
Hardware: x86 → All
Version: Other Branch → Trunk
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: