Skip to content
  • beidson@apple.com's avatar
    More partial work towards "Page Cache should support pages with Frames" · 212b784b
    beidson@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=13631
    
    Reviewed by Darin Adler.
    
    No new tests. (No change in behavior, current tests pass).
    
    * loader/DocumentLoader.cpp:
    (WebCore::DocumentLoader::stopLoading): Adopt the new enum form for FrameLoader::stopLoading().
    
    * loader/FrameLoader.cpp:
    (WebCore::FrameLoader::stopLoading): Take an enum to decide whether to dispatch no unload events,
      only unload, or unload and pagehide.
    (WebCore::FrameLoader::closeURL):
    (WebCore::FrameLoader::scheduleRedirection):
    (WebCore::FrameLoader::cachePageForHistoryItem): Call pageHidden().
    (WebCore::FrameLoader::pageHidden): Add to dispatch the pagehide event to all frames in the case
      where a page is added to the PageCache.
    * loader/FrameLoader.h:
    
    * loader/FrameLoaderTypes.h: Add an UnloadEventPolicy enum.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48001 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    212b784b