Skip to content
  • slewis@apple.com's avatar
    2008-05-07 Stephanie Lewis <slewis@apple.com> · 7c543d56
    slewis@apple.com authored
            Reviewed by Maciej.
    
            remove non-functioning code.  If onunload should be fired from these nodes then
            a WindowEventListener needs to be set.  However, Firefox and IE also do not
            fire onunload events for these cases.
    
            Test: fast/events/onunload-not-on-body.html 
            
            * html/HTMLFrameElementBase.cpp:
            (WebCore::HTMLFrameElementBase::parseMappedAttribute):
            * html/HTMLObjectElement.cpp
            (WebCore::HTMLObjectElement::parseMappedAttribute):
    
    
            Test onunload attr on a frame does not call onunload, but that an onunload attr on the body of
            a frame does.  Also test that onunloads on object elements are not called.
    
            * fast/events/onunload-not-on-body-expected.txt: Added.
            * fast/events/onunload-not-on-body.html: Added.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32967 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    7c543d56