RESOLVED FIXED 206416
[GTK][WPE][Fetch API] Stale-while-revalidate is not enabled
https://bugs.webkit.org/show_bug.cgi?id=206416
Summary [GTK][WPE][Fetch API] Stale-while-revalidate is not enabled
Diego Pino
Reported 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.
Attachments
Patch (3.59 KB, patch)
2020-01-24 04:03 PST, Rob Buis
no flags
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
Patch (3.89 KB, patch)
2020-04-29 02:10 PDT, Rob Buis
no flags
Patch (4.78 KB, patch)
2020-04-29 04:58 PDT, Rob Buis
no flags
Rob Buis
Comment 1 2020-01-24 04:03:15 PST
WebKit Commit Bot
Comment 2 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
WebKit Commit Bot
Comment 3 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
WebKit Commit Bot
Comment 4 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>
WebKit Commit Bot
Comment 5 2020-01-24 10:13:52 PST
All reviewed patches have been landed. Closing bug.
Carlos Alberto Lopez Perez
Comment 6 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
Rob Buis
Comment 7 2020-04-29 02:10:52 PDT
Carlos Alberto Lopez Perez
Comment 8 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
Rob Buis
Comment 9 2020-04-29 04:58:27 PDT
Rob Buis
Comment 10 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?
Carlos Alberto Lopez Perez
Comment 11 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.
Carlos Alberto Lopez Perez
Comment 12 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
Rob Buis
Comment 13 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.
EWS
Comment 14 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].
Note You need to log in before you can comment on or make changes to this bug.