Allow pages with unload handlers in the page cache
authorbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Sep 2014 22:11:16 +0000 (22:11 +0000)
committerbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Sep 2014 22:11:16 +0000 (22:11 +0000)
commitca1b1a7f4435bba7249072f7b8d9de65c5cddd3d
tree5ff5672183aafd8e7ec45f0ae58d7c9f725a57d1
parent09d8849bf2af152be77efb6211e60e518a1e039f
Allow pages with unload handlers in the page cache
<rdar://problem/11084669> and https://bugs.webkit.org/show_bug.cgi?id=136535

Reviewed by Oliver Hunt.

Source/WebCore:

This will match what iOS has been doing for some time.

Updated tests for new behavior.

* history/PageCache.cpp:
(WebCore::logCanCacheFrameDecision):
(WebCore::PageCache::canCachePageContainingThisFrame):

LayoutTests:

* fast/frames/frame-crash-with-page-cache-expected.txt:
* fast/frames/resources/cached-page-1.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@173336 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/frames/frame-crash-with-page-cache-expected.txt
LayoutTests/fast/frames/resources/cached-page-1.html
Source/WebCore/ChangeLog
Source/WebCore/history/PageCache.cpp