Changeset 212816 in webkit


Ignore:
Timestamp:
Feb 22, 2017 12:33:41 AM (7 years ago)
Author:
Carlos Garcia Campos
Message:

NetworkProcess: Stop disabling buffering when NETWORK_CACHE is disabled in build
https://bugs.webkit.org/show_bug.cgi?id=168637

Reviewed by Alex Christensen.

It was added in r193752 as part of bug #137692 to fix an infinite loop in network process that happened in EFL
because they didn't enable the network cache at that time. I think that was actually a workaround, and it was
added without any comment so it has stayed there even when EFL enabled disk cache, and now that is gone. Looking
at current code I see no reason why buffering can't work with the disk cache disabled, so I think it's time to
remove that workaround.

  • WebProcess/Network/WebLoaderStrategy.cpp:

(WebKit::maximumBufferingTime):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r212812 r212816  
     12017-02-22  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        NetworkProcess: Stop disabling buffering when NETWORK_CACHE is disabled in build
     4        https://bugs.webkit.org/show_bug.cgi?id=168637
     5
     6        Reviewed by Alex Christensen.
     7
     8        It was added in r193752 as part of bug #137692 to fix an infinite loop in network process that happened in EFL
     9        because they didn't enable the network cache at that time. I think that was actually a workaround, and it was
     10        added without any comment so it has stayed there even when EFL enabled disk cache, and now that is gone. Looking
     11        at current code I see no reason why buffering can't work with the disk cache disabled, so I think it's time to
     12        remove that workaround.
     13
     14        * WebProcess/Network/WebLoaderStrategy.cpp:
     15        (WebKit::maximumBufferingTime):
     16
    1172017-02-21  Youenn Fablet  <youenn@apple.com>
    218
  • trunk/Source/WebKit2/WebProcess/Network/WebLoaderStrategy.cpp

    r210845 r212816  
    9999static std::chrono::milliseconds maximumBufferingTime(CachedResource* resource)
    100100{
    101 #if !ENABLE(NETWORK_CACHE)
    102     return 0ms;
    103 #endif
    104 
    105101    if (!resource)
    106102        return 0ms;
Note: See TracChangeset for help on using the changeset viewer.