[wpt-sync] Sync PR 18324 - [cookie-store] Deflake service worker registration
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox70 fixed)
| Tracking | Status | |
|---|---|---|
| firefox70 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 18324 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/18324
Details from upstream follow.
Robert Ma <robertma@chromium.org> wrote:
[cookie-store] Deflake service worker registration
Instead of attempting to unregister previously installed service workers
at the beginning of a test, useadd_completion_callbackto unregister
them at test completion. This will deflake the tests when they are run
multiple times without restarts (--rerun).The alternative is to do what many tests in service-workers do:
unregister service workers at the start, but wait for newly installed
service workers to become activated and useregistration.active
instead ofregistration.installing, which is a bit more complex.Fixes the flakiness observed in #17866 .
| Assignee | ||
Comment 1•6 years ago
|
||
| Assignee | ||
Comment 2•6 years ago
|
||
| Assignee | ||
Comment 3•6 years ago
|
||
| Assignee | ||
Comment 4•6 years ago
|
||
Comment 6•6 years ago
|
||
| bugherder | ||
Description
•