Bug 206416 - [GTK][WPE][Fetch API] Stale-while-revalidate is not enabled
Summary: [GTK][WPE][Fetch API] Stale-while-revalidate is not enabled
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Rob Buis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-17 08:35 PST by Diego Pino
Modified: 2020-05-05 05:37 PDT (History)
10 users (show)

See Also:


Attachments
Patch (3.59 KB, patch)
2020-01-24 04:03 PST, Rob Buis
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from webkit-cq-03 for mac-mojave (3.14 MB, application/zip)
2020-01-24 09:43 PST, WebKit Commit Bot
no flags Details
Patch (3.89 KB, patch)
2020-04-29 02:10 PDT, Rob Buis
no flags Details | Formatted Diff | Diff
Patch (4.78 KB, patch)
2020-04-29 04:58 PDT, Rob Buis
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Pino 2020-01-17 08:35:19 PST
The following WPT fetch tests are failing since imported:

  * imported/w3c/web-platform-tests/fetch/stale-while-revalidate/fetch-sw.https.html [ Failure ]
  * imported/w3c/web-platform-tests/fetch/stale-while-revalidate/fetch.html [ Failure ] 
  * imported/w3c/web-platform-tests/fetch/stale-while-revalidate/stale-css.html [ Failure ]
  * imported/w3c/web-platform-tests/fetch/stale-while-revalidate/stale-image.html [ Failure ]
  * imported/w3c/web-platform-tests/fetch/stale-while-revalidate/stale-script.html [ Failure ] 

Other two tests, imported earlier, are also failing:

  * imported/w3c/web-platform-tests/fetch/content-encoding/bad-gzip-body.any.worker.html [ Failure ]

Unskipped in r252363, has been failing since then.

  * imported/w3c/web-platform-tests/fetch/range/sw.https.window.html [ Failure ]

r251594 updated the test and then started to fail. That changeset was later rolled out in r251710, but enabled again in r252047.
Comment 1 Rob Buis 2020-01-24 04:03:15 PST
Created attachment 388672 [details]
Patch
Comment 2 WebKit Commit Bot 2020-01-24 09:43:44 PST
Comment on attachment 388672 [details]
Patch

Rejecting attachment 388672 [details] from commit-queue.

New failing tests:
editing/spelling/spellcheck-async-remove-frame.html
Full output: https://webkit-queues.webkit.org/results/13311067
Comment 3 WebKit Commit Bot 2020-01-24 09:43:46 PST
Created attachment 388703 [details]
Archive of layout-test-results from webkit-cq-03 for mac-mojave

The attached test failures were seen while running run-webkit-tests on the commit-queue.
Bot: webkit-cq-03  Port: mac-mojave  Platform: Mac OS X 10.14.6
Comment 4 WebKit Commit Bot 2020-01-24 10:13:51 PST
Comment on attachment 388672 [details]
Patch

Clearing flags on attachment: 388672

Committed r255078: <https://trac.webkit.org/changeset/255078>
Comment 5 WebKit Commit Bot 2020-01-24 10:13:52 PST
All reviewed patches have been landed.  Closing bug.
Comment 6 Carlos Alberto Lopez Perez 2020-04-20 19:16:24 PDT
Re-opening and re-titling to make more clear why this tests fail: Stale-while-revalidate is not enabled for GTK/WPE
Comment 7 Rob Buis 2020-04-29 02:10:52 PDT
Created attachment 397944 [details]
Patch
Comment 8 Carlos Alberto Lopez Perez 2020-04-29 03:36:17 PDT
Comment on attachment 397944 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=397944&action=review

> LayoutTests/platform/wpe/TestExpectations:-472
> -# Stale-while-revalidate is not enabled for WPE
> -webkit.org/b/206416 imported/w3c/web-platform-tests/fetch/stale-while-revalidate [ Skip ]

I don't see this patch enabling the feature for WPE at Source/cmake/OptionsWPE.cmake
It seems ENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION its also not enabled for WPE, not sure if needed.
And note that the GTK and WPE EWS don't run layout tests, only test to build. Someone has to manually verify that this tests now pass after enabling the feature
Comment 9 Rob Buis 2020-04-29 04:58:27 PDT
Created attachment 397957 [details]
Patch
Comment 10 Rob Buis 2020-04-29 05:38:11 PDT
Comment on attachment 397944 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=397944&action=review

>> LayoutTests/platform/wpe/TestExpectations:-472
>> -webkit.org/b/206416 imported/w3c/web-platform-tests/fetch/stale-while-revalidate [ Skip ]
> 
> I don't see this patch enabling the feature for WPE at Source/cmake/OptionsWPE.cmake
> It seems ENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION its also not enabled for WPE, not sure if needed.
> And note that the GTK and WPE EWS don't run layout tests, only test to build. Someone has to manually verify that this tests now pass after enabling the feature

Right, I was confused because I did not see ENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION enabled for WPE, however the s-w-r should be independent with its own build flag, so I now added it. I verified locally GTK layout tests work, however I do not usually build WPE. Are you willing to build it and run the s-w-r tests?
Comment 11 Carlos Alberto Lopez Perez 2020-04-29 18:28:26 PDT
(In reply to Rob Buis from comment #10)
> Are you willing to build it and run the s-w-r tests?

Tested. The 6 tests pass here.
Comment 12 Carlos Alberto Lopez Perez 2020-04-29 18:30:02 PDT
(In reply to Rob Buis from comment #10)
> Right, I was confused because I did not see
> ENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION enabled for WPE

I guess nobody cared to enable it for WPE so far.
Any reason to not enable it for WPE? If it works for GTK, it should work also for WPE. Both ports share the same network stack
Comment 13 Rob Buis 2020-04-30 09:49:47 PDT
(In reply to Carlos Alberto Lopez Perez from comment #12)
> (In reply to Rob Buis from comment #10)
> > Right, I was confused because I did not see
> > ENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION enabled for WPE
> 
> I guess nobody cared to enable it for WPE so far.
> Any reason to not enable it for WPE? If it works for GTK, it should work
> also for WPE. Both ports share the same network stack

I can't think of any reason not to enable it for WPE.
Comment 14 EWS 2020-05-05 05:37:18 PDT
Committed r261161: <https://trac.webkit.org/changeset/261161>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 397957 [details].