Re: [w3c/ServiceWorker] consider allowing a non-scope identifier for registrations (#1512)

I guess it would reject if a service worker changed scope to a scope that already existed on the origin?

```js
await navigation.serviceWorker.register('/sw.js', {
  scope: '/product/bar',
  id: 'product-bar',
});

await navigation.serviceWorker.register('/sw2.js', {
  scope: '/bar',
});

await navigation.serviceWorker.register('/sw.js', {
  scope: '/bar',
  id: 'product-bar',
});
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1512#issuecomment-615076222

Received on Friday, 17 April 2020 06:53:13 UTC