| <!doctype html> |
| <meta charset="utf-8"> |
| <title>Async Cookies: cookieStore.get() sees cookieStore.set() cookie in ServiceWorker</title> |
| <script src="/resources/testharness.js"></script> |
| <script src="/resources/testharnessreport.js"></script> |
| <script> |
| 'use strict'; |
| |
| (async () => { |
| const scope = 'does/not/exist'; |
| |
| let registration = await navigator.serviceWorker.getRegistration(scope); |
| if (registration) |
| await registration.unregister(); |
| registration = await navigator.serviceWorker.register( |
| 'serviceworker_cookiestore_basic.js', {scope}); |
| |
| fetch_tests_from_worker(registration.installing); |
| })(); |
| </script> |