Skip to content
Browse files
REGRESSION (r293506): [ iOS ][ macOS ] imported/w3c/web-platform-test…
…s/service-workers/service-worker/registration-updateviacache.https.html is a flaky failure

Patch by Youenn Fablet <> 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/
* LayoutTests/platform/mac/TestExpectations:

Canonical link:
git-svn-id: 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
youennf authored and webkit-commit-queue committed Jun 22, 2022
1 parent 84d3422 commit c2dfbf6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
@@ -13,7 +13,7 @@ def main(request, response):
body = u'''
const mainTime = {time:8f};
const testName = {test};
addEventListener('message', event => {{
@@ -2289,8 +2289,6 @@ webanimations/accelerated-animation-slot-invalidation.html [ css3/calc/transitions-dependent.html [ Pass Failure ] imported/w3c/web-platform-tests/service-workers/service-worker/registration-updateviacache.https.html [ Pass Failure ] accessibility/mac/selection-sync.html [ Skip ] # Timeout [ Debug ] webaudio/audioworket-out-of-memory.html [ Pass Timeout DumpJSConsoleLogInStdErr ]

0 comments on commit c2dfbf6

Please sign in to comment.