REGRESSION: [ Mac wk2 ] imported/w3c/web-platform-tests/service-workers/service-worke...
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Dec 2019 23:33:20 +0000 (23:33 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Dec 2019 23:33:20 +0000 (23:33 +0000)
commit3fc6d7e79ce8dbd262fba6aaf965190053c96e00
tree3e629f457e916599151a6741642aab652f367ab4
parenta2f9b166c7bf1090f420164dbd1a393a93d12c05
REGRESSION: [ Mac wk2 ] imported/w3c/web-platform-tests/service-workers/service-worker/update-no-cache-request-headers.https.html is a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=205286
<rdar://problem/57976344>

Reviewed by Alexey Proskuryakov.

The test triggers a registration update and then expects registration.installing to be non-null
once the registration update promise is resolved. This is only true if the content of the service
worker script is different since last update. The script included a timestamp to try and make
the script different every time but it would sometimes not suffice if the update happens quickly
enough. To address the issue, include a UUID in the script instead of a timestamp.

Upstream PR: https://github.com/web-platform-tests/wpt/pull/20797

* web-platform-tests/service-workers/service-worker/resources/test-request-headers-worker.js:
* web-platform-tests/service-workers/service-worker/resources/test-request-headers-worker.py:
(main):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@253592 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/imported/w3c/ChangeLog
LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/resources/test-request-headers-worker.js
LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/resources/test-request-headers-worker.py