Bug 85891

Summary: WKContextSetCacheModel(contextref, kWKCacheModelDocumentViewer) doesn't prevent pages from going into the PageCache
Product: WebKit Reporter: Jessie Berlin <jberlin>
Component: Page LoadingAssignee: Jessie Berlin <jberlin>
Severity: Normal CC: abarth, beidson, japhet, jberlin, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 85888    
Bug Blocks:    
Description Flags
Patch none

Description Jessie Berlin 2012-05-08 09:23:54 PDT
Instead, pages go into the page cache only to come out as soon as the first purge is done.

If m_capacity is 0, PageCache::canCache should return false immediately.

I have a fix, but I am blocked on https://bugs.webkit.org/show_bug.cgi?id=85888 for the ability to test it (since currently the WK2 API for determining when something goes into or out of the page cache is broken).
Comment 1 Jessie Berlin 2012-05-15 10:02:50 PDT
Created attachment 141990 [details]
Comment 2 Jessie Berlin 2012-05-15 12:05:32 PDT
Comment on attachment 141990 [details]

Committed in http://trac.webkit.org/changeset/117112