Don't persist history item tree for subframes across reloads.
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Jul 2015 02:12:16 +0000 (02:12 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Jul 2015 02:12:16 +0000 (02:12 +0000)
commit475b8f6cf65833d2ccd9a201e065fa671b91e76c
tree958826de2a633f00c3ecd699c90c6f53ccca4786
parentfff42d45481fa7455f4f94f29217d2ab00170f9b
Don't persist history item tree for subframes across reloads.
<https://webkit.org/b/146937>
<rdar://problem/19925709>

Reviewed by Brady Eidson.

Throw away the subframe history items when reloading a page. This ensures that we
don't accumulate outdated frame metadata when subframes change name across page loads.
Since the history item tree is encoded in the UA session state and gets serialized to
disk, it's important that we don't let it grow unbounded.

* loader/HistoryController.cpp:
(WebCore::HistoryController::updateForReload):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@186828 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/loader/HistoryController.cpp