DescriptionDo not update Resource::overheadSize() for ResourceRequest's URL modifications
Resource::size() and Resource::overheadSize() can be changed if
|m_resourceRequest|'s URL is changed, and this might corrupt MemoryCache's LRU
lists due to inconsistency between Resource::size() and the LRU list that the
Resource belongs to.
This CL makes Resource::overheadSize() to be constant after Resource's
construction to avoid this due to |m_resourceRequest|'s URL modifications
introduced by https://codereview.chromium.org/1757633005 and any potential
modifications.
BUG=594644
Committed: https://crrev.com/14f135a371fda7b70a446227e4e69c7c7e45beec
Cr-Commit-Position: refs/heads/master@{#383794}
Patch Set 1 #
Total comments: 2
Messages
Total messages: 15 (7 generated)
|