Skip to content
  • ggaren's avatar
    LayoutTests: · d9f8cfd1
    ggaren authored
            Reviewed by Maciej Stachowiak.
    
            * fast/events/onload-after-document-close-no-subresource-expected.txt: Added.
            * fast/events/onload-after-document-close-no-subresource.html: Added.
            * fast/events/onload-after-document-close-with-subresource-expected.txt: Added.
            * fast/events/onload-after-document-close-with-subresource.html: Added.
            * fast/events/resources/onload-image.png: Added.
    
    WebCore:
    
            Reviewed by Maciej Stachowiak.
    
            Fixed http://bugs.webkit.org/show_bug.cgi?id=13241 | <rdar://problem/5126396>
            onload fires before content is finished loading (woot.com)
            
            * dom/Document.cpp:
            (WebCore::Document::close): Try to go through the normal "Am I done loading?"
            machinery before dispatching the load event. As the comment indicates, 
            we can't do this in all cases, so the fix isn't perfect. However, a perfect 
            solution would require much riskier sweeping changes to the loader, which 
            are best left for later, I think.
    
            * xml/XSLTProcessor.cpp:
            (WebCore::XSLTProcessor::createDocumentFromSource): Removed a slightly
            worse solution to the same problem.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@24148 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    d9f8cfd1