summaryrefslogtreecommitdiffstats
path: root/src/gn/CMakeLists.txt
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2022-06-01 17:19:19 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-06-09 08:06:22 +0000
commit5f74fc510c9707a5c930103e7dc5518c72e29345 (patch)
treef97ae7f9e22e158a7b8ecdb834828ec5c033918a /src/gn/CMakeLists.txt
parentd379ee8735df0bf44b2af40badd9cb6c53f27d71 (diff)
Fix flakiness of jsServiceWorker test
This is an interesting issue as in the test sometimes first party url of intercepted request has "sw.js" instead of "sw.html". After deep debug of the issue the reason behind is that a service worker registration job checks the registration for given scope and the key, this in the turn will check storage in ServiceWorkerStorage::FindRegistrationForScope. Now if registration is found this will trigger service worker update checker, which fires the request check for newer version for sw.js and makes an intercepted request with sw.js as first party url. This of course brakes the test. Do not use the storage in that test, and let the service worker registration job do full "install" & "register" cycle instead of running "update" phase. As a side note , using off the record profile makes test run faster as opening the storage and closing it is costly. Change-Id: If13a4fcf0014cc5c76cb8ed14e60f2e5e29c67ef Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 53f3775a532c8a926f3c7ba7d1daf8ada72be306) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/gn/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions