Bug 4153

Summary: WebKit page cache can grow without bound when there is a snapback item around
Product: WebKit Reporter: Maciej Stachowiak <mjs>
Component: WebKit APIAssignee: Maciej Stachowiak <mjs>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 412   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
the fix
none
again, without the debug printfs hyatt: review+

Description Maciej Stachowiak 2005-07-26 22:50:32 PDT
When a snapback page is set, the WebKit back/forward cache (AKA page cache) can grow without bound, 
because it will find the oldest back/forward item but will refuse to actually purge it since it is marked as 
the snapback item. A simple fix would be to purge the most recent non-snapback item when the page 
cache goes over its maximum size instead.
Comment 1 Maciej Stachowiak 2005-07-26 22:58:18 PDT
Created attachment 3106 [details]
the fix
Comment 2 Maciej Stachowiak 2005-07-26 23:04:34 PDT
Created attachment 3107 [details]
again, without the debug printfs

Whoops, I left debug code in the last patch.
Comment 3 Dave Hyatt 2005-07-27 22:50:15 PDT
Comment on attachment 3107 [details]
again, without the debug printfs

r=me
Comment 4 Darin Adler 2005-07-30 12:38:32 PDT
Maciej landed this fix a few days ago.