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+

Maciej Stachowiak
Reported 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.
Attachments
the fix (2.32 KB, patch)
2005-07-26 22:58 PDT, Maciej Stachowiak
no flags
again, without the debug printfs (2.20 KB, patch)
2005-07-26 23:04 PDT, Maciej Stachowiak
hyatt: review+
Maciej Stachowiak
Comment 1 2005-07-26 22:58:18 PDT
Created attachment 3106 [details] the fix
Maciej Stachowiak
Comment 2 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.
Dave Hyatt
Comment 3 2005-07-27 22:50:15 PDT
Comment on attachment 3107 [details] again, without the debug printfs r=me
Darin Adler
Comment 4 2005-07-30 12:38:32 PDT
Maciej landed this fix a few days ago.
Note You need to log in before you can comment on or make changes to this bug.