element-hq / element-hq/element-web

Service worker for authenticated media is not reliable if using multiple firefox containers with develop.element.io/same domain -> 404 returned for media

Open
#28,022 4 comments 0 reactions 0 assignees View on GitHub
A-Media O-Uncommon S-Major T-Defect
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

1. Have authenticated media on the server
2. Have multiple elements of the same url in different firefox containers
3. Try downloading an image

This isnt super reliable but I am not entirely sure about the conditions

### Outcome

#### What did you expect?

It works just fine

#### What happened instead?

Sometimes one of the tabs ends up with unable to download media. The request throws 404 instead of using authenticated media. Unlinking the service worker and reloading fixes the tab but breaks the other tab.

### Operating system

Fedora Silverblue 40

### Browser information

Firefox 129.0.2 (64-Bit)

### URL for webapp

develop.element.io

### Application version

Version von Element: f937dea88b33-react-78059e1ca656-js-ba7bd0629541 Krypto-Version: Rust SDK 0.7.1 (c8c9d15), Vodozemac 0.6.0

### Homeserver

matrix.midnightthoughts.space

### Will you send logs?

Yes

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.