Add asserts and improve logging in PageCache.
Created attachment 131971 [details] Patch
The early exits from logCanCacheFrameDecision had the potential to skew histogram data. Moving the DocumentLoader check to the top, but eliminating the early exits is a compromise that keeps the logged data mostly accurate. I'm grumpy about making the logging more verbose in some situations, but with the DocumentLoader check moved up top, I couldn't trigger a difference in Chromium. An alternative is to add a bool logging = true; at the top of the f'n, and have the conditions that would have exited early use that to turn logging off? Let me know if you prefer that approach. WDYT?
Comment on attachment 131971 [details] Patch This is just the logging method, this is fine.
Comment on attachment 131971 [details] Patch Thanks Brady. I just had minor anxiety about the early exits, now the logic is colour-by-numbers identical to the fast nondebug version.
Comment on attachment 131971 [details] Patch Clearing flags on attachment: 131971 Committed r110998: <http://trac.webkit.org/changeset/110998>
All reviewed patches have been landed. Closing bug.