[Webkit-unassigned] [Bug 177424] Remove ENABLE_NETWORK_CACHE

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 10 15:02:13 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=177424

--- Comment #4 from Antti Koivisto <koivisto at iki.fi> ---
Comment on attachment 323349
  --> https://bugs.webkit.org/attachment.cgi?id=323349
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;

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171010/4bd37908/attachment.html>


More information about the webkit-unassigned mailing list