Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
REGRESSION (r293506): [ iOS ][ macOS ] imported/w3c/web-platform-test…
…s/service-workers/service-worker/registration-updateviacache.https.html is a flaky failure https://bugs.webkit.org/show_bug.cgi?id=240074 rdar://problem/92742526 Patch by Youenn Fablet <youennf@gmail.com> on 2022-06-22 Reviewed by Chris Dumez. Before r293506, we were refreshing the imported scripts from network process only. We are now correctly refreshing them from the caller of update. This makes it possible to load the same scripts from various processes (web process, service worker process), which have different memory caches. The failure happened due to the fact that different subtests were importing the same subscript with various options. This triggered storing the subscript in different memory caches. Some tests expect cache to kick in and expect in that case to have the same resource. If the cache kicks in, but on different memory caches, we end up with different resources. To prevent this in the test, we simply append the test name to each subscript import. * LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/resources/update-max-aged-worker.py: (main): * LayoutTests/platform/mac/TestExpectations: Canonical link: https://commits.webkit.org/251742@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295737 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information