Open Bug 1921989 Opened 1 year ago Updated 2 months ago

Firefox does not invoke service worker fetch listener for video

Categories

(Core :: DOM: Service Workers, defect, P2)

Firefox 130
defect

Tracking

()

UNCONFIRMED

People

(Reporter: email, Unassigned)

References

Details

(Whiteboard: [necko-triaged][necko-priority-next])

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36

Steps to reproduce:

  1. Installed the attached index.html and sw.js on a web server, an http server running on localhost in my case but will require https if remote
  2. Used Firefox service worker debugger to put a breakpoint in the registered sw.js's fetch handler
  3. Refreshed browser

Issue reproduced on FF 115, 130, 131 although I cannot get it to log the messages from the service worker on 131.

Actual results:

Service worker was invoked for the main HTML page, image and favicon.ico but not the video. Logging the below to the console.

SW.js: http://127.0.0.1:8081/ sw.js:14:11
SW.js: https://picsum.photos/320/180 sw.js:14:11
SW.js: http://127.0.0.1:8081/favicon.ico

Expected results:

Service worker should have been invoked for the video as well as it is on Chrome.

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Networking' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → DOM: Networking
Product: Firefox → Core
Severity: -- → S3
Priority: -- → P2
Whiteboard: [necko-triaged][necko-priority-new]
Whiteboard: [necko-triaged][necko-priority-new] → [necko-triaged][necko-priority-next]

I can reproduce the issues with Firefox 133. 0.3 on Fedora 41.

Looks like it's affecting Element Web (Matrix) client: https://github.com/element-hq/element-web/issues/28354

This issue is affecting us on https://chat.blender.org, which runs https://github.com/element-hq/element-web/releases/tag/v1.11.92

They have an active issue tracking this like mentioned above.

I see the following error in my browser console:

Uncaught (in promise) DOMException: The media resource indicated by the src attribute or assigned media provider object was not suitable.

Let me know if you need additional information for reproduction.

System info:

OS: Gentoo Linux x86_64
Kernel: Linux 6.12.16-gentoo
DE: KDE Plasma 6.3.1

Browser info:

Browser: Firefox Developer Edition
Channel: aurora
Version: 128.0b6

Screenshot: https://gist.github.com/bartvdbraak/d0d81edcedc11af2d79d6cba8a707ec4?permalink_comment_id=5461033#gistcomment-5461033

Component: DOM: Networking → DOM: Service Workers
See Also: → 1923096
See Also: → 1962143

Any news on this one? It still breaks videos in Element in latest Firefox beta.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: