RESOLVED FIXED 234988
Disable CFURLCache in WebKit2
https://bugs.webkit.org/show_bug.cgi?id=234988
Summary Disable CFURLCache in WebKit2
Sihui Liu
Reported 2022-01-07 14:40:02 PST
...
Attachments
Patch (6.49 KB, patch)
2022-01-07 14:46 PST, Sihui Liu
no flags
Patch (14.35 KB, patch)
2022-01-21 10:48 PST, Sihui Liu
no flags
Patch (15.35 KB, patch)
2022-01-21 12:03 PST, Sihui Liu
no flags
Patch for landing (15.46 KB, patch)
2022-01-21 15:59 PST, Sihui Liu
no flags
Sihui Liu
Comment 1 2022-01-07 14:46:16 PST
Radar WebKit Bug Importer
Comment 2 2022-01-14 14:40:25 PST
Sihui Liu
Comment 3 2022-01-21 10:48:46 PST
Sihui Liu
Comment 4 2022-01-21 12:03:37 PST
Geoffrey Garen
Comment 5 2022-01-21 14:57:44 PST
Comment on attachment 449681 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=449681&action=review r=me I added some style comments. > Source/WebCore/PAL/pal/spi/cf/CFNetworkSPI.h:362 > +void _CFURLStorageSessionDisableCache(CFURLStorageSessionRef); Can we make this declaration conditional on HAVE(CFNETWORK_DISABLE_CACHE_SPI)? That way you get an easier to understand compiler error, rather than a linker error, if you try to use this function when you shouldn't. > Source/WebCore/platform/network/NetworkStorageSession.h:123 > + enum class ShouldDisableURLCache : bool { No, Yes }; I would call this ShouldDisableCFURLCache, since we still enable the WebCore URL cache even when this is true. > Source/WebCore/platform/network/cf/NetworkStorageSessionCFNet.cpp:49 > + bool isCacheDisabled = false; Can we just use the shouldDisableURLCache parameter instead of tracking this boolean separately? > Source/WebCore/platform/network/cocoa/NetworkStorageSessionCocoa.mm:184 > + bool isCacheDisabled = false; Can we just use the shouldDisableURLCache parameter instead of tracking this boolean separately?
Sihui Liu
Comment 6 2022-01-21 15:08:19 PST
(In reply to Geoffrey Garen from comment #5) > Comment on attachment 449681 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=449681&action=review > > r=me > > I added some style comments. > > > Source/WebCore/PAL/pal/spi/cf/CFNetworkSPI.h:362 > > +void _CFURLStorageSessionDisableCache(CFURLStorageSessionRef); > > Can we make this declaration conditional on > HAVE(CFNETWORK_DISABLE_CACHE_SPI)? That way you get an easier to understand > compiler error, rather than a linker error, if you try to use this function > when you shouldn't. Sure. > > > Source/WebCore/platform/network/NetworkStorageSession.h:123 > > + enum class ShouldDisableURLCache : bool { No, Yes }; > > I would call this ShouldDisableCFURLCache, since we still enable the WebCore > URL cache even when this is true. Sure, I didn't add 'CF' as it does not exist on other platforms. > > Source/WebCore/platform/network/cf/NetworkStorageSessionCFNet.cpp:49 > > + bool isCacheDisabled = false; > > Can we just use the shouldDisableURLCache parameter instead of tracking this > boolean separately? Sure. > > > Source/WebCore/platform/network/cocoa/NetworkStorageSessionCocoa.mm:184 > > + bool isCacheDisabled = false; > > Can we just use the shouldDisableURLCache parameter instead of tracking this > boolean separately? Sure.
Sihui Liu
Comment 7 2022-01-21 15:59:23 PST
Created attachment 449707 [details] Patch for landing
EWS
Comment 8 2022-01-21 17:02:23 PST
Committed r288389 (246286@main): <https://commits.webkit.org/246286@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 449707 [details].
Note You need to log in before you can comment on or make changes to this bug.