Bug 29615 - window.onload fires before all images are loaded when using document write and frames
Summary: window.onload fires before all images are loaded when using document write an...
Status: RESOLVED DUPLICATE of bug 18762
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: HasReduction, InRadar
Depends on:
Blocks:
 
Reported: 2009-09-21 14:39 PDT by Erik Arvidsson
Modified: 2010-10-11 14:36 PDT (History)
2 users (show)

See Also:


Attachments
Test case (1.01 KB, text/html)
2009-09-21 14:39 PDT, Erik Arvidsson
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Arvidsson 2009-09-21 14:39:27 PDT
Created attachment 39878 [details]
Test case

I encountered this bug after trying to clean up LayoutTests\fast\dom\frame-loading-via-document-write.html

The problem occurs when two frames are populated using document write and they both refer to the same image and the image is not cached. In that case the onload event of the second frame happens before the image is loaded.

I'm attaching a simplified test case. First time it is run it generates load events in the wrong order. Subsequent runs are OK, most likely due to things being cached.
Comment 1 Mark Rowe (bdash) 2009-09-21 16:31:42 PDT
<rdar://problem/7241342>
Comment 2 Mihai Parparita 2010-08-30 14:30:28 PDT
FWIW, the patch on bug 44894 makes fast/dom/frame-loading-via-document-write.html more reliable (and not trigger this bug), though I agree that it should still be fixed.
Comment 3 Mihai Parparita 2010-10-11 14:36:58 PDT

*** This bug has been marked as a duplicate of bug 18762 ***