Summary: | Remove ENABLE_NETWORK_CACHE | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Yoshiaki Jitsukawa <yoshiaki.jitsukawa> | ||||||
Component: | WebKit2 | Assignee: | Don Olmstead <don.olmstead> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | achristensen, cdumez, cgarcia, commit-queue, don.olmstead, ggaren, koivisto, webkit-bug-importer, youennf | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Yoshiaki Jitsukawa
2017-09-25 00:16:36 PDT
We should just remove ENABLE_NETWORK_CACHE define and always compile in the code. Cache can still be disabled dynamically. (In reply to Antti Koivisto from comment #1) > We should just remove ENABLE_NETWORK_CACHE define and always compile in the > code. Cache can still be disabled dynamically. I understand. Thank you for the clarification :) Created attachment 323349 [details]
Patch
Comment on attachment 323349 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=323349&action=review > Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp:320 > bool shouldSendDidReceiveResponse = true; This line can be removed > Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp:334 > shouldSendDidReceiveResponse = !m_cacheEntryForValidation; ... and this turned into bool shouldSendDidReceiveResponse = !m_cacheEntryForValidation > Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp:-362 > // For main resources, the web process is responsible for sending back a NetworkResourceLoader::ContinueDidReceiveResponse message. > bool shouldContinueDidReceiveResponse = !shouldWaitContinueDidReceiveResponse; > -#if ENABLE(NETWORK_CACHE) > shouldContinueDidReceiveResponse = shouldContinueDidReceiveResponse || m_cacheEntryForValidation; > -#endif This can be reduced to bool shouldContinueDidReceiveResponse = !shouldWaitContinueDidReceiveResponse || m_cacheEntryForValidation; Created attachment 323365 [details]
Patch
Fixing review comments
Comment on attachment 323365 [details]
Patch
r=me
Comment on attachment 323365 [details] Patch Clearing flags on attachment: 323365 Committed r223179: <https://trac.webkit.org/changeset/223179> All reviewed patches have been landed. Closing bug. |