myhmshome.com - Fetch event in Firefox Service Workers does not include clientId
Categories
(Core :: DOM: Service Workers, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox133 | --- | affected |
People
(Reporter: rbucata, Unassigned)
References
()
Details
(Whiteboard: [webcompat-source:web-bugs])
Environment:
Operating system: Windows 10
Firefox version: Firefox 133.0
Steps to reproduce:
-
Register a service worker with a fetch event listener:
self.addEventListener('fetch', (event) => {
console.log('Client ID:', event.clientId);
}); -
Open a page controlled by the service worker.
-
Trigger a fetch request (e.g., reload the page).
-
Observe
Expected Behavior:
The clientId property should be populated with the ID of the client initiating the request
Actual Behavior:
clientId is null for all fetch events.
Notes:
- Reproduces regardless of the status of ETP
- Reproduces in firefox-nightly, and firefox-release
- Does not reproduce in chrome
Created from https://github.com/webcompat/web-bugs/issues/145387
Reporter | ||
Updated•2 months ago
|
Comment 1•1 month ago
|
||
The severity field is not set for this bug.
:denschub, could you have a look please?
For more information, please visit BugBot documentation.
Updated•1 month ago
|
Updated•29 days ago
|
Comment 2•25 days ago
|
||
I think this is probably a duplicate of bug 1487534.
According to the code comments, currently we only setup FetchEvent.clientId for subresource requests.
Will double-check if subresource requests also gets an empty ClientID.
Updated•24 days ago
|
Description
•