The Hydrogen service worker causes general confusion when running multiple instances at the same time like Patience does, since all instances hear what the others are doing.
We'll need to do at least one of:
Isolate each client on its own domain (blocks direct window access)
Run a modified Hydrogen instance with service workers disabled
Craft some hack to make it seem like the browser doesn't support service workers
The Hydrogen service worker causes general confusion when running multiple instances at the same time like Patience does, since all instances hear what the others are doing.
We'll need to do at least one of:
We are already attempting the hack approach:
https://github.com/matrix-org/patience/blob/a255dcea0adc4c98aab8948697efd43e40e13929/core/api/adapters/hydrogen.ts#L155-L170
...but it seems to only work in Firefox. Recent Chrome appears to run the frame's document before the hack has a chance to mess with things.