Bug 204169

Summary: Add build flag for stale-while-revalidate
Product: WebKit Reporter: Rob Buis <rbuis>
Component: WebCore Misc.Assignee: Rob Buis <rbuis>
Status: RESOLVED FIXED    
Severity: Normal CC: annulen, cdumez, cgarcia, commit-queue, ews-watchlist, gyuyoung.kim, keith_miller, mark.lam, msaboff, ryuan.choi, saam, sergio, tzagallo, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 201461    
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Patch none

Description Rob Buis 2019-11-13 12:08:02 PST
Add build flag for stale-while-revalidate to make it independent from the NETWORK_CACHE_SPECULATIVE_REVALIDATION build flag.
Comment 1 Rob Buis 2019-11-13 12:12:03 PST
Created attachment 383479 [details]
Patch
Comment 2 youenn fablet 2019-11-13 15:22:00 PST
Will NETWORK_CACHE_STALE_WHILE_REVALIDATE without NETWORK_CACHE_SPECULATIVE_REVALIDATION compile?
Comment 3 Rob Buis 2019-11-14 01:45:24 PST
(In reply to youenn fablet from comment #2)
> Will NETWORK_CACHE_STALE_WHILE_REVALIDATE without
> NETWORK_CACHE_SPECULATIVE_REVALIDATION compile?

Yes, I just tried it, and the tests pass as well.
Comment 4 Rob Buis 2020-01-13 08:08:07 PST
Created attachment 387528 [details]
Patch
Comment 5 Rob Buis 2020-01-13 09:10:46 PST
Comment on attachment 387528 [details]
Patch

This still seems useful to me.
Comment 6 youenn fablet 2020-01-21 04:28:47 PST
Comment on attachment 387528 [details]
Patch

Can you verify this is compiling with the flag off?
Comment 7 Rob Buis 2020-01-21 10:20:12 PST
Created attachment 388316 [details]
Patch
Comment 8 Rob Buis 2020-01-21 11:07:09 PST
Created attachment 388325 [details]
Patch
Comment 9 Rob Buis 2020-01-21 11:56:52 PST
Created attachment 388330 [details]
Patch
Comment 10 Rob Buis 2020-01-21 12:46:27 PST
(In reply to youenn fablet from comment #6)
> Comment on attachment 387528 [details]
> Patch
> 
> Can you verify this is compiling with the flag off?

Good point, there were some unused param errors, fixed now.
Comment 11 WebKit Commit Bot 2020-01-21 14:32:27 PST
The commit-queue encountered the following flaky tests while processing attachment 388330 [details]:

editing/spelling/spellcheck-attribute.html bug 206178 (authors: g.czajkowski@samsung.com, mark.lam@apple.com, and rniwa@webkit.org)
The commit-queue is continuing to process your patch.
Comment 12 WebKit Commit Bot 2020-01-21 14:33:08 PST
Comment on attachment 388330 [details]
Patch

Clearing flags on attachment: 388330

Committed r254883: <https://trac.webkit.org/changeset/254883>
Comment 13 WebKit Commit Bot 2020-01-21 14:33:10 PST
All reviewed patches have been landed.  Closing bug.
Comment 14 Radar WebKit Bug Importer 2020-01-21 14:34:20 PST
<rdar://problem/58774042>