[w3c/ServiceWorker] register service worker on another domain (Issue #1631)

With Web Share 2.0 it will be possible to share files to other domains.

If i am on page `a.com` and i wish to share something, and i happen to know another grate service that can handle those file on `b.com`, then that service also needs to install their service worker and set up share_target in the manifest.

but the visitor have never visited `b.com` and registered it before...

So the question really is: how can i make it so `a.com` can trigger `b.com` to register their service worker even before he/she have visited that page.
One solution i can think of is to create a hidden iframe that installs the service worker. But the the problem with 3th party cookies kicks in and you won't be able to install the service worker.

is there some solution to register a foreign service worker?

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

Message ID: <w3c/ServiceWorker/issues/1631@github.com>

Received on Thursday, 10 March 2022 18:14:44 UTC