Skip to content
  • weinig@apple.com's avatar
    WebCore: · f239bbf9
    weinig@apple.com authored
    2009-04-08  Sam Weinig  <sam@webkit.org>
    
            Reviewed by Geoffrey "Big Boy" Garen.
    
            Fix for <rdar://problem/5745677> Possible to stop load during an unload event
            Also fixes https://bugs.webkit.org/show_bug.cgi?id=20605
    
            Tests: fast/events/stop-load-in-unload-handler-using-document-write.html
                   fast/events/stop-load-in-unload-handler-using-window-stop.html
    
            Don't allow calling methods that would stop the new load inside the unload
            event.
    
            * loader/FrameLoader.cpp:
            (WebCore::FrameLoader::FrameLoader):
            (WebCore::FrameLoader::stopLoading):
            (WebCore::FrameLoader::stopAllLoaders):
            * loader/FrameLoader.h:
    
    LayoutTests:
    
    2009-04-08  Sam Weinig  <sam@webkit.org>
    
            Reviewed by Geoffrey "Big Boy" Garen.
    
            Tests for <rdar://problem/5745677> Possible to stop load during an unload event
    
            * fast/events/resources/pass.html: Added.
            * fast/events/resources/subframe-stop-load-in-unload-handler-using-document-write.html: Added.
            * fast/events/resources/subframe-stop-load-in-unload-handler-using-window-stop.html: Added.
            * fast/events/stop-load-in-unload-handler-using-document-write-expected.txt: Added.
            * fast/events/stop-load-in-unload-handler-using-document-write.html: Added.
            * fast/events/stop-load-in-unload-handler-using-window-stop-expected.txt: Added.
            * fast/events/stop-load-in-unload-handler-using-window-stop.html: Added.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@42365 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    f239bbf9